From 68e388a32b1be09b73eee18c8720efd1c08fdfe8 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 13 Jan 2013 14:29:28 -0800 Subject: Add _X_NORETURN to PrintUsage to clear gcc/clang warnings Signed-off-by: Alan Coopersmith --- configure.ac | 2 +- xvinfo.c | 2 +- 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 #include -static void +static void _X_NORETURN PrintUsage(void) { fprintf(stderr, "Usage: xvinfo [-display host:dpy] [-short]\n"); -- cgit v1.2.3