Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7e2ba260 authored by Harry Cutts's avatar Harry Cutts
Browse files

TfLiteMotionPredictor_test: fix initialization order warnings

The mismatch in order between the declaration and the initializer lists
was causing the following warning:

    warning: ISO C++ requires field designators to be specified in
    declaration order; field 'orientation' will be initialized after
    field 'tilt' [-Wreorder-init-list]

Bug: 245989146
Test: atest libinput_tests
Flag: TEST_ONLY
Change-Id: Ic49c54df27b454c3593064de4778bcde7899f230
parent 2a10ab9b
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -89,23 +89,23 @@ TEST(TfLiteMotionPredictorTest, BuffersCopyTo) {
    buffers.pushSample(/*timestamp=*/1,
                       {.position = {.x = 10, .y = 10},
                        .pressure = 0,
                        .orientation = 0,
                        .tilt = 0.2});
                        .tilt = 0.2,
                        .orientation = 0});
    buffers.pushSample(/*timestamp=*/2,
                       {.position = {.x = 10, .y = 50},
                        .pressure = 0.4,
                        .orientation = M_PI / 4,
                        .tilt = 0.3});
                        .tilt = 0.3,
                        .orientation = M_PI / 4});
    buffers.pushSample(/*timestamp=*/3,
                       {.position = {.x = 30, .y = 50},
                        .pressure = 0.5,
                        .orientation = -M_PI / 4,
                        .tilt = 0.4});
                        .tilt = 0.4,
                        .orientation = -M_PI / 4});
    buffers.pushSample(/*timestamp=*/3,
                       {.position = {.x = 30, .y = 60},
                        .pressure = 0,
                        .orientation = 0,
                        .tilt = 0.5});
                        .tilt = 0.5,
                        .orientation = 0});
    buffers.copyTo(*model);

    const int zeroPadding = model->inputLength() - 3;