From 89a38bfaa40147d65e0240f24e1619a24cc38dd7 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Mon, 13 Jan 2020 13:51:43 +0000 Subject: [PATCH] display-test: Remove unused variables At higher warning levels, GCC complains about unused variables. Remove two completely unused, and one set-but-not-used, variables from display-test to make it happy. Signed-off-by: Daniel Stone --- tests/display-test.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/display-test.c b/tests/display-test.c index 7b2647f..533916c 100644 --- a/tests/display-test.c +++ b/tests/display-test.c @@ -1455,7 +1455,6 @@ send_overflow_client(void *data) TEST(send_overflow_disconnection) { struct display *d; - struct client_info *c; char tmp; int rpipe[2]; int i; @@ -1464,7 +1463,7 @@ TEST(send_overflow_disconnection) d = display_create(); - c = client_create(d, send_overflow_client, &rpipe); + (void) client_create(d, send_overflow_client, &rpipe); /* Close write end of the pipe, so that the later read() call gets * interrupted if the client dies */ @@ -1578,7 +1577,6 @@ global_remove_after_client(void *data) struct client *c = client_connect(); struct wl_registry *registry; uint32_t global_id = 0; - struct wl_seat *seat; int ret; registry = wl_display_get_registry(c->wl_display); @@ -1598,7 +1596,6 @@ TEST(global_remove) { struct display *d; struct wl_global *global; - int i; d = display_create(); -- 2.7.4