diff --git a/WINGs/dragcommon.c b/WINGs/dragcommon.c index 8cce2eec..db5e5f11 100644 --- a/WINGs/dragcommon.c +++ b/WINGs/dragcommon.c @@ -95,6 +95,9 @@ char *WMGetDragOperationItemText(WMDragOperationItem * item) static int handleNoWindowXError(Display * dpy, XErrorEvent * errEvt) { + /* Parameter not used, but tell the compiler that it is ok */ + (void) dpy; + if (errEvt->error_code == BadWindow || errEvt->error_code == BadDrawable) { _WindowExists = False; return Success; diff --git a/WINGs/selection.c b/WINGs/selection.c index 200b919a..64d71fb4 100644 --- a/WINGs/selection.c +++ b/WINGs/selection.c @@ -102,6 +102,10 @@ static void WMDeleteSelectionCallback(WMView * view, Atom selection, Time timest static int handleXError(Display * dpy, XErrorEvent * ev) { + /* Parameter not used, but tell the compiler that it is ok */ + (void) dpy; + (void) ev; + gotXError = True; return 1;