mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-07 06:14:13 +01:00
WPrefs: Marked args as unused for compiler in WINGs callback code
The WINGs toolkit dispatch events on widgets using 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
63037bf426
commit
066d0cdef7
@@ -1215,6 +1215,10 @@ menuItemCloned(WEditMenuDelegate * delegate, WEditMenu * menu, WEditMenuItem * o
|
||||
ItemData *data = WGetEditMenuItemData(origItem);
|
||||
ItemData *newData;
|
||||
|
||||
/* Parameter not used, but tell the compiler that it is ok */
|
||||
(void) delegate;
|
||||
(void) menu;
|
||||
|
||||
if (!data)
|
||||
return;
|
||||
|
||||
@@ -1310,6 +1314,10 @@ static void menuItemDeselected(WEditMenuDelegate * delegate, WEditMenu * menu, W
|
||||
{
|
||||
_Panel *panel = (_Panel *) delegate->data;
|
||||
|
||||
/* Parameter not used, but tell the compiler that it is ok */
|
||||
(void) menu;
|
||||
(void) item;
|
||||
|
||||
changeInfoType(panel, NULL, NoInfo);
|
||||
}
|
||||
|
||||
@@ -1318,6 +1326,9 @@ static void menuItemSelected(WEditMenuDelegate * delegate, WEditMenu * menu, WEd
|
||||
ItemData *data = WGetEditMenuItemData(item);
|
||||
_Panel *panel = (_Panel *) delegate->data;
|
||||
|
||||
/* Parameter not used, but tell the compiler that it is ok */
|
||||
(void) menu;
|
||||
|
||||
panel->currentItem = item;
|
||||
|
||||
if (data) {
|
||||
|
||||
Reference in New Issue
Block a user