Commit babaf67c authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Ulrich Sibiller

Pending.c: Fix compilation warning

Pending.c: In function ‘XEventsQueued’: Pending.c:44:5: warning: format ‘%p’ expects argument of type ‘void *’, but argument 3 has type ‘struct Display *’ [-Wformat=] fprintf(stderr, "\nXEventsQueued: Called with a display at [%p].\n", dpy); ^
parent ae8ec6b1
......@@ -41,7 +41,7 @@ int XEventsQueued (
{
int ret_val;
#if defined(NX_TRANS_SOCKET) && defined(NX_TRANS_TEST)
fprintf(stderr, "\nXEventsQueued: Called with a display at [%p].\n", dpy);
fprintf(stderr, "\nXEventsQueued: Called with a display at [%p].\n", (void *)dpy);
#endif
LockDisplay(dpy);
......@@ -50,7 +50,7 @@ int XEventsQueued (
else
ret_val = _XEventsQueued (dpy, mode);
#if defined(NX_TRANS_SOCKET) && defined(NX_TRANS_TEST)
fprintf(stderr, "\nXEventsQueued: Going to unlock the display at [%p].\n", dpy);
fprintf(stderr, "\nXEventsQueued: Going to unlock the display at [%p].\n", (void *)dpy);
#endif
UnlockDisplay(dpy);
return ret_val;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment