From 5ea2adab785079f7b87a459654696d2fff248a52 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Tue, 17 Feb 2015 23:00:56 -0800 Subject: Mark required arguments to Xlib error handler as unused Quiets clang warnings: xdpyinfo.c:151:24: warning: unused parameter 'dpy' [-Wunused-parameter] silent_errors(Display *dpy, XErrorEvent *ev) ^ xdpyinfo.c:151:42: warning: unused parameter 'ev' [-Wunused-parameter] silent_errors(Display *dpy, XErrorEvent *ev) ^ Signed-off-by: Alan Coopersmith --- configure.ac | 2 +- xdpyinfo.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 37467ea..01a5dea 100644 --- a/configure.ac +++ b/configure.ac @@ -38,7 +38,7 @@ XORG_MACROS_VERSION(1.8) XORG_DEFAULT_OPTIONS # Checks for pkg-config packages -PKG_CHECK_MODULES(XDPYINFO, [xext x11 xtst x11-xcb xcb xproto >= 7.0.17]) +PKG_CHECK_MODULES(XDPYINFO, [xext x11 xtst x11-xcb xcb xproto >= 7.0.22]) # This is used below to allow to be found PKG_CHECK_MODULES(DPY_X11, x11) diff --git a/xdpyinfo.c b/xdpyinfo.c index 2b94394..a0e0045 100644 --- a/xdpyinfo.c +++ b/xdpyinfo.c @@ -148,7 +148,7 @@ static char *ProgramName; static Bool queryExtensions = False; static int -silent_errors(Display *dpy, XErrorEvent *ev) +silent_errors(_X_UNUSED Display *dpy, _X_UNUSED XErrorEvent *ev) { return 0; } -- cgit v1.2.3