diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2024-10-28 15:56:33 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2024-10-31 10:28:08 +1000 |
commit | 6c350ab26945dc740d09a7769ecc5b6afeb60040 (patch) | |
tree | d4f85a36983fff173e9179cf6f093755d7385136 /test/test-pad.c | |
parent | 266ce4218b37a12984908a42e9c34ccfdc05d09e (diff) |
test: fix 3 compiler warnings when building without libwacom
signed/unsigned and an unused variable.
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1070>
Diffstat (limited to 'test/test-pad.c')
-rw-r--r-- | test/test-pad.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test-pad.c b/test/test-pad.c index faf22a0b..27b60af7 100644 --- a/test/test-pad.c +++ b/test/test-pad.c @@ -226,7 +226,7 @@ START_TEST(pad_button_intuos) litest_assert_empty_queue(li); - litest_assert_int_ge(count, 1); + litest_assert_int_ge(count, 1U); #endif } END_TEST @@ -276,7 +276,7 @@ START_TEST(pad_button_bamboo) litest_assert_empty_queue(li); - litest_assert_int_gt(count, 3); + litest_assert_int_gt(count, 3U); #endif } END_TEST @@ -696,7 +696,6 @@ START_TEST(pad_no_left_handed) { struct litest_device *dev = litest_current_device(); struct libinput_device *device = dev->libinput_device; - enum libinput_config_status status; /* Without libwacom we default to left-handed being available */ #if HAVE_LIBWACOM @@ -711,6 +710,7 @@ START_TEST(pad_no_left_handed) 0); #if HAVE_LIBWACOM + enum libinput_config_status status; status = libinput_device_config_left_handed_set(dev->libinput_device, 1); litest_assert_enum_eq(status, LIBINPUT_CONFIG_STATUS_UNSUPPORTED); |