Fix some warnings

Non-obvious fixes:

WINGs/wfilepanel.c: Cast to void to avoid an unused calculated value
warning.

WINGs/wtabview.c: Test tab<0 to avoid a warning from the next condition
about signed overflow in an inlined invocation of the function.

Signed-off-by: Brad Jorsch <anomie@users.sourceforge.net>
This commit is contained in:
Brad Jorsch authored and Carlos R. Mafra committed 2010-10-08 22:00:23 +02:00
1 parent 51134d2438
commit 5eebb8bc3c
7 files changed
+9 -13

No files matched your search

+1 -1
View File
@@ -93,7 +93,7 @@ static int positionOfTab(WMTabView * tabView, int tab)
int i;
int offs;
if (tab < tabView->firstVisible)
if (tab < 0 || tab < tabView->firstVisible)
return -1;
if (tab > tabView->firstVisible + tabView->visibleTabs)