mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-11 11:15:55 +01:00
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:
committed by
Carlos R. Mafra
parent
51134d2438
commit
5eebb8bc3c
@@ -662,7 +662,7 @@ static void normalizePath(char *s)
|
||||
int i, j, found;
|
||||
|
||||
found = 0;
|
||||
for (i = 0; s[i]; !found && i++) {
|
||||
for (i = 0; s[i]; (void)(!found && i++)) {
|
||||
found = 0;
|
||||
if (s[i] == '/' && s[i+1] == '/') {
|
||||
int nslash = 1;
|
||||
|
||||
Reference in New Issue
Block a user