diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2012-04-16 15:16:10 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2012-04-16 15:16:10 -0700 |
commit | 8ec9e20ca8025173257770c750a05729c8d91fa0 (patch) | |
tree | d1c6fb76dc7098160bcbc92b1eb50609aba8c9a3 | |
parent | 1195e8cecb25b3b3e64a3ef7cfdc84e65caf57d7 (diff) |
Mark usage() as _X_NORETURN to silence gcc warning
fslsfonts.c: In function ‘usage’:
fslsfonts.c:92:1: warning: function might be possible candidate for attribute ‘noreturn’
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | 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 ); |