test: drop unused variable
authorPeter Hutterer <peter.hutterer@who-t.net>
Mon, 27 Mar 2017 22:55:35 +0000 (08:55 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Tue, 28 Mar 2017 08:56:38 +0000 (18:56 +1000)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
test/test-touchpad-tap.c

index fcc1662d8a7f5c8184e9452828f26851e187a7a5..cc0d86fd92c1c43abb8f0c76f4913ccee865328d 100644 (file)
@@ -594,7 +594,6 @@ START_TEST(touchpad_1fg_tap_n_drag)
        struct litest_device *dev = litest_current_device();
        struct libinput *li = dev->libinput;
        struct libinput_event *event;
-       struct libinput_event_pointer *ptrev __attribute__((unused));
 
        litest_enable_tap(dev->libinput_device);
        litest_disable_drag_lock(dev->libinput_device);
@@ -624,9 +623,9 @@ START_TEST(touchpad_1fg_tap_n_drag)
        libinput_dispatch(li);
        event = libinput_get_event(li);
        ck_assert_notnull(event);
-       ptrev = litest_is_button_event(event,
-                                      BTN_LEFT,
-                                      LIBINPUT_BUTTON_STATE_RELEASED);
+       litest_is_button_event(event,
+                              BTN_LEFT,
+                              LIBINPUT_BUTTON_STATE_RELEASED);
        libinput_event_destroy(event);
 
        litest_assert_empty_queue(li);