mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 21:08:08 +01:00
wmaker: Marked args as unused for compiler in XExposeEvent callback code
The custom drawing code for windows is handled using callback functions, which means having a fixed argument list for that 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
9330ddf946
commit
c34a55ed5a
@@ -650,6 +650,9 @@ static void openApplicationMenu(WApplication * wapp, int x, int y)
|
||||
|
||||
static void iconExpose(WObjDescriptor *desc, XEvent *event)
|
||||
{
|
||||
/* Parameter not used, but tell the compiler that it is ok */
|
||||
(void) event;
|
||||
|
||||
wAppIconPaint(desc->parent);
|
||||
}
|
||||
|
||||
|
||||
@@ -1432,6 +1432,10 @@ void wClipIconPaint(void)
|
||||
|
||||
static void clipIconExpose(WObjDescriptor *desc, XEvent *event)
|
||||
{
|
||||
/* Parameter not used, but tell the compiler that it is ok */
|
||||
(void) desc;
|
||||
(void) event;
|
||||
|
||||
wClipIconPaint();
|
||||
}
|
||||
|
||||
@@ -4311,6 +4315,9 @@ static char * findUniqueName(WScreen *scr, const char *instance_basename)
|
||||
|
||||
static void drawerIconExpose(WObjDescriptor *desc, XEvent *event)
|
||||
{
|
||||
/* Parameter not used, but tell the compiler that it is ok */
|
||||
(void) event;
|
||||
|
||||
wDrawerIconPaint((WAppIcon *) desc->parent);
|
||||
}
|
||||
|
||||
|
||||
@@ -1378,6 +1378,9 @@ static void handleButtonExpose(WObjDescriptor * desc, XEvent * event)
|
||||
WFrameWindow *fwin = (WFrameWindow *) desc->parent;
|
||||
WCoreWindow *button = (WCoreWindow *) desc->self;
|
||||
|
||||
/* Parameter not used, but tell the compiler that it is ok */
|
||||
(void) event;
|
||||
|
||||
#ifdef XKB_BUTTON_HINT
|
||||
if (button == fwin->language_button) {
|
||||
if (wPreferences.modelock)
|
||||
|
||||
@@ -784,6 +784,9 @@ void wIconPaint(WIcon *icon)
|
||||
|
||||
static void miniwindowExpose(WObjDescriptor * desc, XEvent * event)
|
||||
{
|
||||
/* Parameter not used, but tell the compiler that it is ok */
|
||||
(void) event;
|
||||
|
||||
wIconPaint(desc->parent);
|
||||
}
|
||||
|
||||
@@ -791,6 +794,9 @@ static void miniwindowDblClick(WObjDescriptor * desc, XEvent * event)
|
||||
{
|
||||
WIcon *icon = desc->parent;
|
||||
|
||||
/* Parameter not used, but tell the compiler that it is ok */
|
||||
(void) event;
|
||||
|
||||
assert(icon->owner != NULL);
|
||||
|
||||
wDeiconifyWindow(icon->owner);
|
||||
|
||||
@@ -1667,6 +1667,9 @@ void wMenuScroll(WMenu * menu, XEvent * event)
|
||||
|
||||
static void menuExpose(WObjDescriptor * desc, XEvent * event)
|
||||
{
|
||||
/* Parameter not used, but tell the compiler that it is ok */
|
||||
(void) event;
|
||||
|
||||
wMenuPaint(desc->parent);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user