From 9c55efa1b36173aa7d768a55990ed7fe2c4f6034 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Fri, 15 Jul 2011 18:07:57 -0700 Subject: Mark error() & usage() functions as _X_NORETURN Requires xproto >= 7.0.17 Signed-off-by: Alan Coopersmith Reviewed-by: Jeremy Huddleston --- xset.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xset.c') diff --git a/xset.c b/xset.c index 7703618..cca592d 100644 --- a/xset.c +++ b/xset.c @@ -151,8 +151,8 @@ static void set_lock(Display *dpy, Bool onoff); static char *on_or_off(int val, int onval, char *onstr, int offval, char *offstr, char buf[]); static void query(Display *dpy); -static void usage(char *fmt, ...); -static void error(char *message); +static void usage(char *fmt, ...) _X_NORETURN; +static void error(char *message) _X_NORETURN; static int local_xerror(Display *dpy, XErrorEvent *rep); #ifdef XF86MISC -- cgit v1.2.3