summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2019-05-17 19:57:28 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2019-05-18 06:42:24 -0400
commit41ba4dec60f7d9495c8d45c068d5c3d17e035e1e (patch)
tree703b3c0c26e29e8def861100149028d43f8721e3 /include
parent36019ab614068bdf3fc933addc3a9b4cb512c9e0 (diff)
downloadxorg-lib-libXt-41ba4dec60f7d9495c8d45c068d5c3d17e035e1e.tar.gz
use _X_NORETURN, works for gcc and clang
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'include')
-rw-r--r--include/X11/Intrinsic.h16
-rw-r--r--include/X11/IntrinsicI.h2
2 files changed, 9 insertions, 9 deletions
diff --git a/include/X11/Intrinsic.h b/include/X11/Intrinsic.h
index 99c4d84..7378101 100644
--- a/include/X11/Intrinsic.h
+++ b/include/X11/Intrinsic.h
@@ -1712,11 +1712,11 @@ void XtSessionReturnToken(
extern XtErrorMsgHandler XtAppSetErrorMsgHandler(
XtAppContext /* app_context */,
- XtErrorMsgHandler /* handler */
+ XtErrorMsgHandler /* handler */ _X_NORETURN
);
extern void XtSetErrorMsgHandler( /* obsolete */
- XtErrorMsgHandler /* handler */
+ XtErrorMsgHandler /* handler */ _X_NORETURN
);
extern XtErrorMsgHandler XtAppSetWarningMsgHandler(
@@ -1736,7 +1736,7 @@ extern void XtAppErrorMsg(
_Xconst _XtString /* default */,
String* /* params */,
Cardinal* /* num_params */
-);
+) _X_NORETURN;
extern void XtErrorMsg( /* obsolete */
_Xconst _XtString /* name */,
@@ -1745,7 +1745,7 @@ extern void XtErrorMsg( /* obsolete */
_Xconst _XtString /* default */,
String* /* params */,
Cardinal* /* num_params */
-);
+) _X_NORETURN;
extern void XtAppWarningMsg(
XtAppContext /* app_context */,
@@ -1768,11 +1768,11 @@ extern void XtWarningMsg( /* obsolete */
extern XtErrorHandler XtAppSetErrorHandler(
XtAppContext /* app_context */,
- XtErrorHandler /* handler */
+ XtErrorHandler /* handler */ _X_NORETURN
);
extern void XtSetErrorHandler( /* obsolete */
- XtErrorHandler /* handler */
+ XtErrorHandler /* handler */ _X_NORETURN
);
extern XtErrorHandler XtAppSetWarningHandler(
@@ -1787,11 +1787,11 @@ extern void XtSetWarningHandler( /* obsolete */
extern void XtAppError(
XtAppContext /* app_context */,
_Xconst _XtString /* message */
-);
+) _X_NORETURN;
extern void XtError( /* obsolete */
_Xconst _XtString /* message */
-);
+) _X_NORETURN;
extern void XtAppWarning(
XtAppContext /* app_context */,
diff --git a/include/X11/IntrinsicI.h b/include/X11/IntrinsicI.h
index c6d5773..a8b7f48 100644
--- a/include/X11/IntrinsicI.h
+++ b/include/X11/IntrinsicI.h
@@ -172,7 +172,7 @@ extern String XtCXtToolkitError;
extern void _XtAllocError(
String /* alloc_type */
-);
+) _X_NORETURN;
extern void _XtCompileResourceList(
XtResourceList /* resources */,