From 7cccec04962741b0d37bc92e580e1029b2d49849 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Tue, 20 Dec 2011 18:01:35 -0800 Subject: Mark xload_error as noreturn Silences a gcc warning Raises the minimum version of xproto needed to build to 7.0.17 Signed-off-by: Alan Coopersmith --- configure.ac | 2 +- get_load.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 3c0a1d1..7c94abf 100644 --- a/configure.ac +++ b/configure.ac @@ -66,7 +66,7 @@ AM_CONDITIONAL(USE_GETTEXT, test "x$USE_GETTEXT" = "xyes") AC_CHECK_LIB([kstat], [kstat_open]) # Checks for pkg-config packages -PKG_CHECK_MODULES(XLOAD, xaw7 xmu xt x11) +PKG_CHECK_MODULES(XLOAD, xaw7 xmu xt x11 [xproto >= 7.0.17]) PKG_CHECK_MODULES(APPDEFS, xt) xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` diff --git a/get_load.c b/get_load.c index 77b6779..dc07d60 100644 --- a/get_load.c +++ b/get_load.c @@ -201,7 +201,7 @@ void GetLoadPoint( extern long lseek(); #endif -static void xload_error(const char *, const char *); +static void xload_error(const char *, const char *) _X_NORETURN; #if defined(SYSV) && defined(i386) -- cgit v1.2.3