On Mon, 21 Mar 2011 at 19:07:52 +0100, Tamas TEVESZ wrote:
> 
> 0002-Remove-warnings.patch is a monster fixing gcc46 warnings; this 
> needs some testing love, though things generally appear to work. 
> carlos, if it more or less works for you as well, next can probably 
> take it (i've only tested it on freebsd now, so you'll do linux now :)

I don't have gcc46 here on openSUSE 11.4 but I got this with gcc45 and
your patch applied:

  CC     wmmenugen.o
In file included from wmmenugen.c:38:0:
wmmenugen.h:60:93: warning: ‘struct FTW’ declared inside parameter list
wmmenugen.h:60:93: warning: its scope is only this definition or declaration, 
which is probably not what you want
wmmenugen.c:42:89: warning: ‘struct FTW’ declared inside parameter list
wmmenugen.c:47:97: warning: ‘struct FTW’ declared inside parameter list
wmmenugen.c: In function ‘main’:
wmmenugen.c:95:22: warning: assignment from incompatible pointer type
wmmenugen.c:108:5: warning: implicit declaration of function ‘nftw’
wmmenugen.c:108:37: error: ‘FTW_PHYS’ undeclared (first use in this function)
wmmenugen.c:108:37: note: each undeclared identifier is reported only once for 
each function it appears in
wmmenugen.c: At top level:
wmmenugen.c:142:89: warning: ‘struct FTW’ declared inside parameter list
wmmenugen.c:142:12: error: conflicting types for ‘dirParseFunc’
wmmenugen.c:42:12: note: previous declaration of ‘dirParseFunc’ was here
wmmenugen.c: In function ‘dirParseFunc’:
wmmenugen.c:149:6: warning: passing argument 4 of ‘validateFilename’ from 
incompatible pointer type
wmmenugen.c:149:6: note: expected ‘struct FTW *’ but argument is of type 
‘struct FTW *’
wmmenugen.c: At top level:
wmmenugen.c:42:12: warning: ‘dirParseFunc’ used but never defined
wmmenugen.c:142:12: warning: ‘dirParseFunc’ defined but not used
make[3]: *** [wmmenugen.o] Fehler 1


-- 
To unsubscribe, send mail to [email protected].

Reply via email to