From e100ad533203fdc0d80078835c557f1bc47954bd Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 2 Mar 2013 08:49:40 -0800 Subject: Mark argument to nameserver_lost signal handler as unused Quiets clang warning: xhost.c:812:21: warning: unused parameter 'sig' [-Wunused-parameter] nameserver_lost(int sig) ^ Signed-off-by: Alan Coopersmith --- configure.ac | 2 +- xhost.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index be103e6..68cefa1 100644 --- a/configure.ac +++ b/configure.ac @@ -19,7 +19,7 @@ XORG_DEFAULT_OPTIONS # Checks for pkg-config packages # - Both CFLAGS & LIBS needed: -PKG_CHECK_MODULES(XHOST, x11 xmuu) +PKG_CHECK_MODULES(XHOST, [xproto >= 7.0.22 x11 xmuu]) # - Only CFLAGS needed, not libs: PKG_CHECK_MODULES(XAU, xau) diff --git a/xhost.c b/xhost.c index fd13dae..576513a 100644 --- a/xhost.c +++ b/xhost.c @@ -809,7 +809,7 @@ get_hostname(XHostAddress *ha) /*ARGUSED*/ static void -nameserver_lost(int sig) +nameserver_lost(_X_UNUSED int sig) { nameserver_timedout = 1; } -- cgit v1.2.3