1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-28 09:22:27 +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:
Christophe CURIS
2013-10-13 22:44:05 +02:00
committed by Carlos R. Mafra
parent 9330ddf946
commit c34a55ed5a
5 changed files with 22 additions and 0 deletions

View File

@@ -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);