From 2e195507f5b17425d02af4dd6a4f151158d715c3 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Fri, 22 Feb 2013 23:01:53 -0800 Subject: Mark Exit() and usage() as _X_NORETURN Signed-off-by: Alan Coopersmith --- configure.ac | 2 +- xkill.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 9bffa65..6b4bb5c 100644 --- a/configure.ac +++ b/configure.ac @@ -39,7 +39,7 @@ XORG_MACROS_VERSION(1.8) XORG_DEFAULT_OPTIONS # Checks for pkg-config packages -PKG_CHECK_MODULES(XKILL, x11 xmuu) +PKG_CHECK_MODULES(XKILL, [x11 xmuu xproto >= 7.0.17]) AC_CONFIG_FILES([ Makefile diff --git a/xkill.c b/xkill.c index 429a64a..8ee3431 100644 --- a/xkill.c +++ b/xkill.c @@ -60,7 +60,7 @@ static int verify_okay_to_kill ( Display *dpy, int screenno ); static Bool wm_state_set ( Display *dpy, Window win ); static Bool wm_running ( Display *dpy, int screenno ); -static void +static void _X_NORETURN Exit(int code, Display *dpy) { if (dpy) { @@ -69,7 +69,7 @@ Exit(int code, Display *dpy) exit (code); } -static void +static void _X_NORETURN usage(void) { const char *options = -- cgit v1.2.3