test: fix compiler warning about tablet test

test.h:421:49: warning: ‘last_y’ may be used uninitialized in this function
[-Wmaybe-uninitialized]

Cannot actually happen, if we don't get into the while loop where we
initialize it, we would assert.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2015-07-14 13:13:34 +10:00
parent 9e705bf334
commit dc334a13c9

View file

@ -503,7 +503,7 @@ START_TEST(left_handed)
struct libinput_event *event;
struct libinput_event_tablet *tablet_event;
double libinput_max_x, libinput_max_y;
double last_x, last_y;
double last_x = -1.0, last_y = -1.0;
struct axis_replacement axes[] = {
{ ABS_DISTANCE, 10 },
{ -1, -1 }