summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-07-09 23:01:23 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-07-09 23:01:23 -0700
commit25454313c637f2b6983ba289deed96141cec8000 (patch)
treeb595b2c4ce194f397047c57db60342c6f30573ba
parentde0e13ada857191a59c0e8f985d2317a7c41f43b (diff)
Mark functions noreturn as suggested by gcc -Wmissing-noreturn
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--configure.ac2
-rw-r--r--xcalc.h6
2 files changed, 4 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index 8e9d602..7d4ecab 100644
--- a/configure.ac
+++ b/configure.ac
@@ -41,7 +41,7 @@ XORG_DEFAULT_OPTIONS
AC_CHECK_FUNCS([strlcpy])
# Checks for pkg-config packages
-PKG_CHECK_MODULES(XCALC, xaw7 xt x11)
+PKG_CHECK_MODULES(XCALC, [xaw7 xt x11 xproto >= 7.0.17])
PKG_CHECK_MODULES(APPDEFS, xt)
xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
diff --git a/xcalc.h b/xcalc.h
index bb6920d..1924bf7 100644
--- a/xcalc.h
+++ b/xcalc.h
@@ -122,8 +122,8 @@ extern XtActionsRec Actions[];
extern int ActionsCount;
/* math.c */
-extern signal_t fperr(int sig);
-extern signal_t illerr(int sig);
+extern signal_t fperr(int sig) _X_NORETURN;
+extern signal_t illerr(int sig) _X_NORETURN;
extern void fail_op(void);
extern int pre_op(int keynum);
extern void post_op(void);
@@ -155,7 +155,7 @@ extern jmp_buf env;
/* xcalc.c */
extern void do_select(Time time);
extern void draw(char *string);
-extern void Quit(void);
+extern void Quit(void) _X_NORETURN;
extern void ringbell(void);
extern void setflag(int indicator, Boolean on);