1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-30 02:12:30 +01:00

WINGs: Marked args as unused for compiler in a few more callback functions

As callback have a fixed prototype, it is 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.curis@free.fr>
This commit is contained in:
Christophe CURIS
2013-10-19 22:17:56 +02:00
committed by Carlos R. Mafra
parent ea74fe8871
commit bd58625a3f
4 changed files with 37 additions and 0 deletions

View File

@@ -2059,6 +2059,10 @@ static WMData *requestHandler(WMView * view, Atom selection, Atom target, void *
Atom COMPOUND_TEXT = XInternAtom(dpy, "COMPOUND_TEXT", False);
WMData *data = NULL;
/* Parameter not used, but tell the compiler that it is ok */
(void) selection;
(void) cdata;
if (target == XA_STRING || target == TEXT || target == COMPOUND_TEXT) {
char *text = WMGetTextSelectedStream(tPtr);
@@ -2093,6 +2097,10 @@ static WMData *requestHandler(WMView * view, Atom selection, Atom target, void *
static void lostHandler(WMView * view, Atom selection, void *cdata)
{
/* Parameter not used, but tell the compiler that it is ok */
(void) selection;
(void) cdata;
releaseSelection((WMText *) view->self);
}
@@ -2340,6 +2348,12 @@ static void pasteText(WMView * view, Atom selection, Atom target, Time timestamp
Text *tPtr = (Text *) view->self;
char *text;
/* Parameter not used, but tell the compiler that it is ok */
(void) selection;
(void) target;
(void) timestamp;
(void) cdata;
tPtr->flags.waitingForSelection = 0;
if (data) {