From 3d05b29e9e1431f11cb2c2cb960380586c6ba494 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 24 May 2014 10:06:37 -0700 Subject: Add noreturn attribute to Syntax function Suggested by clang: xgamma.c:48:1: warning: function 'Syntax' could be declared with attribute 'noreturn' [-Wmissing-noreturn] { Signed-off-by: Alan Coopersmith --- configure.ac | 2 +- xgamma.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 6f79b2f..4ee5820 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(XGAMMA, x11 xxf86vm) +PKG_CHECK_MODULES(XGAMMA, [x11 xxf86vm xproto >= 7.0.17]) AC_CONFIG_FILES([ Makefile diff --git a/xgamma.c b/xgamma.c index a9d2c3f..6db07ef 100644 --- a/xgamma.c +++ b/xgamma.c @@ -43,7 +43,7 @@ static int EventBase, ErrorBase; #define GAMMA_MIN 0.1 #define GAMMA_MAX 10.0 -static void +static void _X_NORETURN Syntax(void) { fprintf (stderr, "usage: %s [-options]\n\n", -- cgit v1.2.3