summaryrefslogtreecommitdiff
path: root/xsm.h
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2021-11-28 11:02:18 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2021-11-30 17:52:59 +0000
commit107fbd198f2d4cec9efb54e89a568a595ac2d1e3 (patch)
treee02cfd400aef328e6ff8a6a63fc50c73e7603fe3 /xsm.h
parent416a3fc806f47b158b489bb44f7709fc44fa4f3e (diff)
Add noreturn attributes suggested by gcc
misc.c: In function ‘nomem’: misc.c:106:1: warning: function might be candidate for attribute ‘noreturn’ [-Wsuggest-attribute=noreturn] 106 | nomem(void) | ^~~~~ xsm.c:657:1: warning: function might be candidate for attribute ‘noreturn’ [-Wsuggest-attribute=noreturn] 657 | EndSession(int status) | ^~~~~~~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'xsm.h')
-rw-r--r--xsm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/xsm.h b/xsm.h
index 1ee74e8..10f0274 100644
--- a/xsm.h
+++ b/xsm.h
@@ -196,7 +196,7 @@ extern XtSignalId sig_term_id, sig_usr1_id;
extern void fprintfhex(FILE *fp, unsigned int len, char *cp);
extern Status StartSession(char *name, Bool use_default);
-extern void EndSession(int status);
+extern void EndSession(int status) _X_NORETURN;
extern void SetWM_DELETE_WINDOW(Widget widget, const _XtString delAction);
extern void SetAllSensitive(Bool on);
extern void FreeClient(ClientRec *client, Bool freeProps);
@@ -205,7 +205,7 @@ extern void CloseDownClient(ClientRec *client);
/* misc.c */
extern int strbw(const char *a, const char *b);
-extern void nomem(void);
+extern void nomem(void) _X_NORETURN;
#define Strstr strstr