From 25454313c637f2b6983ba289deed96141cec8000 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Tue, 9 Jul 2013 23:01:23 -0700 Subject: Mark functions noreturn as suggested by gcc -Wmissing-noreturn Signed-off-by: Alan Coopersmith --- configure.ac | 2 +- xcalc.h | 6 +++--- 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); -- cgit v1.2.3