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 --- xdpyinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xdpyinfo.c') 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