From 1519db19e3d1ed1efc07c8c428c1e9013d93f285 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Fri, 6 Sep 2013 00:13:44 -0700 Subject: Mark arguments to catch_window_errors as unused Arguments are required by the callback form, but not needed in this case. Clears clang compliants: xkill.c:328:30: warning: unused parameter 'dpy' [-Wunused-parameter] catch_window_errors(Display *dpy, XErrorEvent *ev) ^ xkill.c:328:48: warning: unused parameter 'ev' [-Wunused-parameter] catch_window_errors(Display *dpy, XErrorEvent *ev) Signed-off-by: Alan Coopersmith --- configure.ac | 2 +- xkill.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 6b4bb5c..033d445 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(XKILL, [x11 xmuu xproto >= 7.0.17]) +PKG_CHECK_MODULES(XKILL, [x11 xmuu xproto >= 7.0.22]) AC_CONFIG_FILES([ Makefile diff --git a/xkill.c b/xkill.c index a4f5c48..9bbde1c 100644 --- a/xkill.c +++ b/xkill.c @@ -325,7 +325,7 @@ get_window_id(Display *dpy, int screen, int button, const char *msg) static int -catch_window_errors(Display *dpy, XErrorEvent *ev) +catch_window_errors(_X_UNUSED Display *dpy, _X_UNUSED XErrorEvent *ev) { return 0; } -- cgit v1.2.3