diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-04-21 15:02:52 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-04-21 15:07:40 -0700 |
commit | d028190d036f25472dba587863322a8fe03dda95 (patch) | |
tree | d5c56d353f63c4d39486121563903d38fa6a5e4a | |
parent | f36566239cc9119882a36273c3eefb90962d6ee5 (diff) |
Mark usage() functions as noreturn, as suggested by gcc
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | atobm.c | 3 | ||||
-rw-r--r-- | bmtoa.c | 2 | ||||
-rw-r--r-- | configure.ac | 4 |
3 files changed, 5 insertions, 4 deletions
@@ -34,6 +34,7 @@ from The Open Group. #include <stdio.h> #include <ctype.h> #include <X11/Xos.h> +#include <X11/Xfuncproto.h> #include <stdlib.h> static char *ProgramName; @@ -41,7 +42,7 @@ static char *ProgramName; static void doit(FILE *fp, const char *filename, const char *chars, int xhot, int yhot, const char *name); -static void +static void _X_NORETURN usage (void) { fprintf (stderr, "usage: %s [-options ...] [filename]\n\n%s\n", @@ -53,7 +53,7 @@ static char *ProgramName; static void print_scanline (unsigned int width, unsigned int height, unsigned const char *data, const char *chars); -static void +static void _X_NORETURN usage (void) { fprintf (stderr, "usage: %s [-options ...] [filename]\n\n%s\n", diff --git a/configure.ac b/configure.ac index e9b4699..394fbdb 100644 --- a/configure.ac +++ b/configure.ac @@ -55,8 +55,8 @@ LIBS="$save_LIBS" AC_SUBST([MATH_LIBS]) # Obtain compiler/linker options from dependencies -PKG_CHECK_MODULES(BMTOA, x11 xmu) -PKG_CHECK_MODULES(ATOBM, xproto) +PKG_CHECK_MODULES(BMTOA, [x11 xmu xproto >= 7.0.17]) +PKG_CHECK_MODULES(ATOBM, [xproto >= 7.0.17]) PKG_CHECK_MODULES(BITMAP, xbitmaps xaw7 xmu) PKG_CHECK_MODULES(APPDEFS, xt) |