summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJosé Expósito <jose.exposito89@gmail.com>2022-07-12 19:44:59 +0200
committerJosé Expósito <jose.exposito89@gmail.com>2022-07-12 19:44:59 +0200
commit71f79b9de1e4fb08c5afeb4e1b3f113a2c5531af (patch)
treeef69d201e2922b1582961ae8b718ed5f20c9f2e0 /test
parent368b12ad45f0ab35cf2bb15f0cfba8bbfc60934f (diff)
downloadlibinput-71f79b9de1e4fb08c5afeb4e1b3f113a2c5531af.tar.gz
libwacom: fix warnings building without libwacom
When the libwacom build option is set to false the compiler throws these warnings: ../udev/libinput-device-group.c:95:1: warning: ‘wacom_handle_ekr’ defined but not used [-Wunused-function] 95 | wacom_handle_ekr(struct udev_device *device, | ^~~~~~~~~~~~~~~~ [205/237] Compiling C object 'libinput-test-suite@exe/test_test-tablet.c.o'. ../test/test-tablet.c:5440:1: warning: ‘verify_left_handed_touch_sequence’ defined but not used [-Wunused-function] 5440 | verify_left_handed_touch_sequence(struct litest_device *finger, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../test/test-tablet.c:5385:1: warning: ‘verify_left_handed_tablet_sequence’ defined but not used [-Wunused-function] 5385 | verify_left_handed_tablet_sequence(struct litest_device *tablet, # | ^~~~~~~~~~~~~~~~ # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Add the required guards to fix the warnings. Fix #791. Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Diffstat (limited to 'test')
-rw-r--r--test/test-tablet.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test-tablet.c b/test/test-tablet.c
index ce1c7b6a..098c9e56 100644
--- a/test/test-tablet.c
+++ b/test/test-tablet.c
@@ -5334,6 +5334,7 @@ START_TEST(touch_arbitration_late_touch_lift)
}
END_TEST
+#if HAVE_LIBWACOM
static void
verify_left_handed_tablet_motion(struct litest_device *tablet,
struct libinput *li,
@@ -5453,6 +5454,7 @@ verify_left_handed_touch_sequence(struct litest_device *finger,
litest_touch_up(finger, 0);
libinput_dispatch(li);
}
+#endif
START_TEST(tablet_rotation_left_handed)
{