From: Christophe CURIS <christophe.cu...@free.fr> 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 <christophe.cu...@free.fr> --- WPrefs.app/editmenu.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/WPrefs.app/editmenu.c b/WPrefs.app/editmenu.c index f5edeed..1f3e481 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; } -- 1.8.4.rc3 -- To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.