Commit 2c59fbe3 authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Ulrich Sibiller

Fix warnings in XlibInt.c

XlibInt.c: In function ‘_XIOError’: XlibInt.c:3750:1: warning: ‘noreturn’ function does return [enabled by default] } After fixing the above a new warning came up, which is also fixed now: XlibInt.c: In function ‘_XIOError’: XlibInt.c:3750:1: warning: control reaches end of non-void function [-Wreturn-type] }
parent 0a28292e
......@@ -3743,6 +3743,8 @@ _XIOError (
dpy->flags &= ~XlibDisplayReadEvents;
dpy->flags &= ~XlibDisplayWriting;
dpy->flags &= ~XlibDisplayReply;
/* shut up the compiler by returning something */
return 0;
#else
exit (1);
#endif
......
......@@ -856,7 +856,12 @@ extern int _XError(
);
extern int _XIOError(
Display* /* dpy */
#ifdef NX_TRANS_SOCKET
);
#else
) _X_NORETURN;
#endif /* NX_TRANS_SOCKET */
extern int (*_XIOErrorFunction)(
Display* /* dpy */
);
......
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