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 ( ...@@ -3743,6 +3743,8 @@ _XIOError (
dpy->flags &= ~XlibDisplayReadEvents; dpy->flags &= ~XlibDisplayReadEvents;
dpy->flags &= ~XlibDisplayWriting; dpy->flags &= ~XlibDisplayWriting;
dpy->flags &= ~XlibDisplayReply; dpy->flags &= ~XlibDisplayReply;
/* shut up the compiler by returning something */
return 0;
#else #else
exit (1); exit (1);
#endif #endif
......
...@@ -856,7 +856,12 @@ extern int _XError( ...@@ -856,7 +856,12 @@ extern int _XError(
); );
extern int _XIOError( extern int _XIOError(
Display* /* dpy */ Display* /* dpy */
#ifdef NX_TRANS_SOCKET
);
#else
) _X_NORETURN; ) _X_NORETURN;
#endif /* NX_TRANS_SOCKET */
extern int (*_XIOErrorFunction)( extern int (*_XIOErrorFunction)(
Display* /* dpy */ 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