From 041f25afa81dfc7e7ef350d5b955d2d5912846c9 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Wed, 27 Sep 2017 14:31:36 -0400 Subject: test: const correctness fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ../test/sync/sync.c: In function ‘main’: ../test/sync/sync.c:288:40: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] xcb_query_extension_reply_t *ext = xcb_get_extension_data(c, &xcb_sync_id); ^~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Adam Jackson Reviewed-by: Eric Anholt --- test/sync/sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/sync/sync.c b/test/sync/sync.c index f25d3fa37..bd1b0addd 100644 --- a/test/sync/sync.c +++ b/test/sync/sync.c @@ -285,7 +285,7 @@ int main(int argc, char **argv) { int screen; xcb_connection_t *c = xcb_connect(NULL, &screen); - xcb_query_extension_reply_t *ext = xcb_get_extension_data(c, &xcb_sync_id); + const xcb_query_extension_reply_t *ext = xcb_get_extension_data(c, &xcb_sync_id); if (!ext->present) { printf("No XSync present\n"); -- cgit v1.2.3