On Sun, Oct 28, 2007 at 07:07:15PM -0700, Dan Kegel wrote:
To get uninitialized warnings, you have to also specify optimization (-O2). Without -O, gcc doesn't do the analysis that can detect uninitialized variables.
Compiling with "-O2 -W -Wall" using either gcc 4.0 or 3.4 I don't get any warnings. Even adding -Wuninitialized doesn't do anything:
$ make clean && make -j1 CFLAGS="-O2 -W -Wall -Wuninitialized" 2>&1 | fgrep warning widl.c:189: warning: unused parameter 'sig' parser.yy.c:1276: warning: comparison between signed and unsigned