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>
This commit is contained in:
parent
1d1ff1142a
commit
041f25afa8
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue
Block a user