From dd82c46335bbea64fe5767f8cff8ec571eb0db8f Mon Sep 17 00:00:00 2001 From: Christophe CURIS Date: Fri, 1 Nov 2013 16:06:47 +0100 Subject: [PATCH] WPrefs: Marked args as unused for compiler in X Error handler When an error occurs in X, the Xlib is using a callback mechanism to execute application code to handle the problem, which means having a fixed argument list for that application function. It is then correct to not use all the arguments, so this patch adds the appropriate stuff to avoid a false report from compiler. Signed-off-by: Christophe CURIS --- WPrefs.app/editmenu.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/WPrefs.app/editmenu.c b/WPrefs.app/editmenu.c index f5edeed6..1f3e4814 100644 --- a/WPrefs.app/editmenu.c +++ b/WPrefs.app/editmenu.c @@ -941,6 +941,10 @@ static void slideWindow(Display * dpy, Window win, int srcX, int srcY, int dstX, static int errorHandler(Display * d, XErrorEvent * ev) { + /* Parameter not used, but tell the compiler that it is ok */ + (void) d; + (void) ev; + /* just ignore */ return 0; }