From dc334a13c9910273a1d63911bdbe8c1db661dc7b Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 14 Jul 2015 13:13:34 +1000 Subject: [PATCH] test: fix compiler warning about tablet test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- test/tablet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/tablet.c b/test/tablet.c index dac15069..3de28b34 100644 --- a/test/tablet.c +++ b/test/tablet.c @@ -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 }