--- In [email protected], Thomas Hruska <thru...@...> wrote: > > John Matthews wrote: > > Using gcc v4.1.2 with -Wall, you don't get a warning at the default > > optimisation level (none, -O0), but you do if you use -O1 -O2 -O3 -Os > > (and others?). > > Why in the world would the optimization level have anything to do with > the warning level?
I guess it needs to do certain types of static anlysis for optimisation, and as a result of that analysis it spots things like uninitialised variables. That is, the warning is just a by-product of another process. But I'm only guessing. John
