From 4f6949cf2cbef059f360adb775a8b4be292a19bd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Exp=C3=B3sito?= Date: Wed, 23 Nov 2022 18:28:01 +0100 Subject: [PATCH] test: remove unused variable MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fix warning building with Clang v15: ../test/test-pad.c:334:15: warning: variable 'expected_number' set but not used [-Wunused-but-set-variable] unsigned int expected_number = 0; Signed-off-by: José Expósito --- test/test-pad.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/test/test-pad.c b/test/test-pad.c index cfa4c76e..0c52a9dc 100644 --- a/test/test-pad.c +++ b/test/test-pad.c @@ -331,7 +331,6 @@ START_TEST(pad_button_mode_groups) struct litest_device *dev = litest_current_device(); struct libinput *li = dev->libinput; unsigned int code; - unsigned int expected_number = 0; struct libinput_event *ev; struct libinput_event_tablet_pad *pev; @@ -381,8 +380,6 @@ START_TEST(pad_button_mode_groups) index = libinput_tablet_pad_mode_group_get_index(group); ck_assert_int_eq(index, 0); libinput_event_destroy(ev); - - expected_number++; } litest_assert_empty_queue(li); -- 2.34.1