From 61f95e11eef3fbfb9060a32233df13c35115a6f3 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Thu, 18 Jul 2013 20:59:01 -0700 Subject: Add noreturn attributes suggested by -Wmissing-noreturn Signed-off-by: Alan Coopersmith --- configure.ac | 2 +- xclock.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index c7ec91b..9d7c26e 100644 --- a/configure.ac +++ b/configure.ac @@ -44,7 +44,7 @@ AC_CHECK_FUNCS([strlcpy getpid]) AM_ICONV dnl Required dependencies -PKG_CHECK_MODULES(XCLOCK, xaw7 xmu x11) +PKG_CHECK_MODULES(XCLOCK, [xaw7 xmu x11 xproto >= 7.0.17]) XCLOCK_LIBS="$XCLOCK_LIBS $LIBICONV" dnl Optional dependencies diff --git a/xclock.c b/xclock.c index 5965a83..3b56117 100644 --- a/xclock.c +++ b/xclock.c @@ -100,7 +100,7 @@ static Atom wm_delete_window; /* * Report the syntax for calling xclock. */ -static void +static void _X_NORETURN Syntax(char *call) { (void) printf ("Usage: %s [-analog] [-bw ] [-digital] [-brief]\n", call); @@ -116,7 +116,7 @@ Syntax(char *call) exit(1); } -static void +static void _X_NORETURN die(Widget w, XtPointer client_data, XtPointer call_data) { XCloseDisplay(XtDisplayOfObject(w)); -- cgit v1.2.3