From 8ec9e20ca8025173257770c750a05729c8d91fa0 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Mon, 16 Apr 2012 15:16:10 -0700 Subject: Mark usage() as _X_NORETURN to silence gcc warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fslsfonts.c: In function ‘usage’: fslsfonts.c:92:1: warning: function might be possible candidate for attribute ‘noreturn’ Signed-off-by: Alan Coopersmith --- configure.ac | 2 +- fslsfonts.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 63e0665..e0c41e6 100644 --- a/configure.ac +++ b/configure.ac @@ -36,7 +36,7 @@ XORG_DEFAULT_OPTIONS AC_CONFIG_HEADERS([config.h]) # Checks for pkg-config packages -PKG_CHECK_MODULES(FSLSFONTS, xproto libfs) +PKG_CHECK_MODULES(FSLSFONTS, [xproto >= 7.0.17 libfs]) AC_CONFIG_FILES([ Makefile diff --git a/fslsfonts.c b/fslsfonts.c index 888c9e0..6ff6a2d 100644 --- a/fslsfonts.c +++ b/fslsfonts.c @@ -79,7 +79,7 @@ static FSServer *svr; static char *program_name; -static void usage ( void ); +static void usage ( void ) _X_NORETURN; static void get_list ( const char *pattern ); static int compare ( const void *f1, const void *f2 ); static void show_fonts ( void ); -- cgit v1.2.3