summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-01-13 14:29:28 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-01-13 14:29:28 -0800
commit68e388a32b1be09b73eee18c8720efd1c08fdfe8 (patch)
tree4e7b7e7d7ab1029dd3489168e2ee61d98cbf8057
parent34828bc984579fd77136d5d0a559d1a887bac420 (diff)
Add _X_NORETURN to PrintUsage to clear gcc/clang warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--configure.ac2
-rw-r--r--xvinfo.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 97caf70..5fa4507 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(XVINFO, xv x11)
+PKG_CHECK_MODULES(XVINFO, [xv x11 xproto >= 7.0.17])
AC_CONFIG_FILES([
Makefile
diff --git a/xvinfo.c b/xvinfo.c
index 5d15364..9e27a58 100644
--- a/xvinfo.c
+++ b/xvinfo.c
@@ -6,7 +6,7 @@
#include <string.h>
#include <ctype.h>
-static void
+static void _X_NORETURN
PrintUsage(void)
{
fprintf(stderr, "Usage: xvinfo [-display host:dpy] [-short]\n");