mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-29 23:00:08 +01:00
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:
parent
9e705bf334
commit
dc334a13c9
1 changed files with 1 additions and 1 deletions
|
|
@ -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 }
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue