summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2015-02-17 23:00:56 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2015-02-17 23:00:56 -0800
commit5ea2adab785079f7b87a459654696d2fff248a52 (patch)
tree477f45995a7d8b4f978f584b325450f5d9fddb3f
parentbec84d9dd1b6d5f3fcee4cccd704759c5c18544a (diff)
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 <alan.coopersmith@oracle.com>
-rw-r--r--configure.ac2
-rw-r--r--xdpyinfo.c2
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 <X11/Xlib.h> 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;
}