mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-16 22:25:56 +01:00
WINGs: Marked args as unused for compiler in widget resize callback code
WINGs dispatches window resize events 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
0d8a530bc3
commit
702764a7b0
@@ -1697,6 +1697,9 @@ static void textDidResize(W_ViewDelegate * self, WMView * view)
|
||||
unsigned short h = tPtr->view->size.height;
|
||||
unsigned short rh = 0, vw = 0, rel;
|
||||
|
||||
/* Parameter not used, but tell the compiler that it is ok */
|
||||
(void) self;
|
||||
|
||||
rel = (tPtr->flags.relief == WRFlat);
|
||||
|
||||
if (tPtr->ruler && tPtr->flags.rulerShown) {
|
||||
|
||||
Reference in New Issue
Block a user