From 7e5c3cdddeee730dff2b464de558954344d55892 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 17 Feb 2013 10:25:18 -0800 Subject: Mark do_quit as noreturn, as suggested by gcc & clang Signed-off-by: Alan Coopersmith --- configure.ac | 2 +- xfd.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 6b24bfe..c2472e3 100644 --- a/configure.ac +++ b/configure.ac @@ -59,7 +59,7 @@ fi AM_CONDITIONAL(USE_GETTEXT, test "x$USE_GETTEXT" = "xyes") # Checks for pkg-config packages -PKG_CHECK_MODULES(XFD, xaw7 fontconfig xft xrender xmu) +PKG_CHECK_MODULES(XFD, [xaw7 fontconfig xft xrender xmu xproto >= 7.0.17]) PKG_CHECK_MODULES(APPDEFS, xt) xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` diff --git a/xfd.c b/xfd.c index 18f262f..3ffd84a 100644 --- a/xfd.c +++ b/xfd.c @@ -72,7 +72,7 @@ static XrmOptionDescRec xfd_options[] = { static void usage(void); static void SelectChar(Widget w, XtPointer closure, XtPointer data); static void do_quit(Widget w, XEvent *event, String *params, - Cardinal *num_params); + Cardinal *num_params) _X_NORETURN; static void change_page(int page); static void set_button_state(void); static void do_prev(Widget w, XEvent *event, String *params, -- cgit v1.2.3