mirror of
https://github.com/gryf/wmaker.git
synced 2026-03-16 15:33:33 +01:00
WINGs: Marked args as unused for compiler in XDND callback code
The drag-n-drop mechanism is managed by WINGs through callbacks, which means having a fixed argument list for the handling 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.curis@free.fr>
This commit is contained in:
committed by
Carlos R. Mafra
parent
fed1bf4de3
commit
0d8a530bc3
@@ -407,6 +407,12 @@ storeDropData(WMView * destView, Atom selection, Atom target, Time timestamp, vo
|
||||
WMDraggingInfo *info = &(scr->dragInfo);
|
||||
WMData *dataToStore = NULL;
|
||||
|
||||
/* Parameter not used, but tell the compiler that it is ok */
|
||||
(void) selection;
|
||||
(void) target;
|
||||
(void) timestamp;
|
||||
(void) cdata;
|
||||
|
||||
if (data != NULL)
|
||||
dataToStore = WMRetainData(data);
|
||||
|
||||
@@ -888,6 +894,11 @@ void WMUnregisterViewDraggedTypes(WMView * view)
|
||||
static WMDragOperationType
|
||||
defAllowedOperation(WMView * self, WMDragOperationType requestedOperation, WMArray * sourceDataTypes)
|
||||
{
|
||||
/* Parameter not used, but tell the compiler that it is ok */
|
||||
(void) self;
|
||||
(void) requestedOperation;
|
||||
(void) sourceDataTypes;
|
||||
|
||||
/* no operation allowed */
|
||||
return WDOperationNone;
|
||||
}
|
||||
@@ -903,6 +914,11 @@ defAllowedOperation(WMView * self, WMDragOperationType requestedOperation, WMArr
|
||||
static WMArray *defRequiredDataTypes(WMView * self,
|
||||
WMDragOperationType requestedOperation, WMArray * sourceDataTypes)
|
||||
{
|
||||
/* Parameter not used, but tell the compiler that it is ok */
|
||||
(void) self;
|
||||
(void) requestedOperation;
|
||||
(void) sourceDataTypes;
|
||||
|
||||
/* no data type allowed (NULL even at 2nd pass) */
|
||||
return NULL;
|
||||
}
|
||||
@@ -912,6 +928,8 @@ static WMArray *defRequiredDataTypes(WMView * self,
|
||||
*/
|
||||
static void defPrepareForDragOperation(WMView * self)
|
||||
{
|
||||
/* Parameter not used, but tell the compiler that it is ok */
|
||||
(void) self;
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -938,11 +956,18 @@ static void defPrepareForDragOperation(WMView * self)
|
||||
static void
|
||||
defPerformDragOperation(WMView * self, WMArray * dropDatas, WMArray * operationList, WMPoint * dropLocation)
|
||||
{
|
||||
/* Parameter not used, but tell the compiler that it is ok */
|
||||
(void) self;
|
||||
(void) dropDatas;
|
||||
(void) operationList;
|
||||
(void) dropLocation;
|
||||
}
|
||||
|
||||
/* Executed after drop */
|
||||
static void defConcludeDragOperation(WMView * self)
|
||||
{
|
||||
/* Parameter not used, but tell the compiler that it is ok */
|
||||
(void) self;
|
||||
}
|
||||
|
||||
void WMSetViewDragDestinationProcs(WMView * view, WMDragDestinationProcs * procs)
|
||||
|
||||
Reference in New Issue
Block a user