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 authored and Carlos R. Mafra committed 2013-10-19 18:01:36 -03:00
1 parent 0d8a530bc3
commit 702764a7b0
13 files changed
+39

No files matched your search

+3
View File
@@ -134,6 +134,9 @@ static void willResizeScroller(W_ViewDelegate * self, WMView * view, unsigned in
{
WMScroller *sPtr = (WMScroller *) view->self;
/* Parameter not used, but tell the compiler that it is ok */
(void) self;
if (*width > *height) {
sPtr->flags.horizontal = 1;
*height = SCROLLER_WIDTH;