1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-03-06 01:05:54 +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:
Christophe CURIS
2013-10-19 22:17:53 +02:00
committed by Carlos R. Mafra
parent 0d8a530bc3
commit 702764a7b0
13 changed files with 39 additions and 0 deletions

View File

@@ -314,6 +314,9 @@ static void willResizeWindow(W_ViewDelegate * self, WMView * view, unsigned *wid
{
WMWindow *win = (WMWindow *) view->self;
/* Parameter not used, but tell the compiler that it is ok */
(void) self;
if (win->minSize.width > 0 && win->minSize.height > 0) {
if (*width < win->minSize.width)
*width = win->minSize.width;