[PATCH libX11 2/4] mark _XDefaultIOError as no_return

walter harms wharms at bfs.de
Sat Jun 4 15:22:07 UTC 2016


mark _XDefaultIOError as no_return. No one comes back from exit() ...

Signed-off-by: harms wharms at bfs.de

---
 src/XlibInt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/XlibInt.c b/src/XlibInt.c
index 7296948..86ae1d9 100644
--- a/src/XlibInt.c
+++ b/src/XlibInt.c
@@ -1238,7 +1238,7 @@ _XWireToEvent(
  * _XDefaultIOError - Default fatal system error reporting routine.  Called
  * when an X internal system error is encountered.
  */
-int _XDefaultIOError(
+_X_NORETURN int _XDefaultIOError(
 	Display *dpy)
 {
 	if (ECHECK(EPIPE)) {
-- 
2.1.4



More information about the xorg-devel mailing list