summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-04-21 15:02:52 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-04-21 15:07:40 -0700
commitd028190d036f25472dba587863322a8fe03dda95 (patch)
treed5c56d353f63c4d39486121563903d38fa6a5e4a
parentf36566239cc9119882a36273c3eefb90962d6ee5 (diff)
Mark usage() functions as noreturn, as suggested by gcc
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--atobm.c3
-rw-r--r--bmtoa.c2
-rw-r--r--configure.ac4
3 files changed, 5 insertions, 4 deletions
diff --git a/atobm.c b/atobm.c
index 93d7b12..040fecb 100644
--- a/atobm.c
+++ b/atobm.c
@@ -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",
diff --git a/bmtoa.c b/bmtoa.c
index 6682fe8..0394038 100644
--- a/bmtoa.c
+++ b/bmtoa.c
@@ -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)