diff options
author | Adam Jackson <ajax@redhat.com> | 2017-09-27 14:31:36 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2017-10-04 11:19:09 -0400 |
commit | 041f25afa81dfc7e7ef350d5b955d2d5912846c9 (patch) | |
tree | 1c27e8a8a7563c40b46689ad67f0bb0422184ff7 /test | |
parent | 1d1ff1142a5a3904175f45d2f52bbdffb0249e57 (diff) |
test: const correctness fix
../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 <ajax@redhat.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'test')
-rw-r--r-- | test/sync/sync.c | 2 |
1 files changed, 1 insertions, 1 deletions
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"); |