mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 04:48:06 +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
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user