From 8a858fc65ece8a8bed2fd2c684f9214c54d5efe2 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Sun, 22 Mar 2020 10:44:17 +1000 Subject: [PATCH] test: fix a scan-build warning (value set but not read) This test pre-dates litest_assert_empty_queue(), so let's just use that Signed-off-by: Peter Hutterer --- test/test-path.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/test-path.c b/test/test-path.c index 7e78dd47..76498214 100644 --- a/test/test-path.c +++ b/test/test-path.c @@ -456,7 +456,6 @@ END_TEST START_TEST(path_add_invalid_path) { struct libinput *li; - struct libinput_event *event; struct libinput_device *device; li = litest_create_context(); @@ -468,8 +467,7 @@ START_TEST(path_add_invalid_path) libinput_dispatch(li); - while ((event = libinput_get_event(li))) - ck_abort(); + litest_assert_empty_queue(li); libinput_unref(li); }