a warning to implement

Paolo Carlini pcarlini@unitus.it
Mon Feb 11 07:44:00 GMT 2002


Alexandre Oliva wrote:

>Hmm...  Perhaps my message was lost in the noise...
>
>We *already* have a warning that is enabled with -Wall for constructs
>such as `T x = x;', and the warning is that `x' is being used
>uninitialized.  Some earlier versions of GCC apparently didn't issue
>this warning, or only do when optimization is enabled, but the fact is
>that there is a warning already, and adding another IMHO would be
>overkill.
>
Alexandre, are you deadly sure that the current mainline emits the warning?
The whole thread started with Andrey observation that gcc does *not* 
warn. At the time I supported him, having verified that indeed it 
does'nt with -Wall and/or -Wuninitialized. Unfortunately I don't have 
here my snapshots to check again.

Ciao, Paolo.




More information about the Gcc mailing list