Missing "var is used uninitialized" warning?

Georg-Johann Lay avr@gjlay.de
Sat Sep 17 20:33:00 GMT 2011


Hi, compiled with -Wall -Wextra the wollowing lines don't complain about 
a being used uninitialized.  Tried with 4.5 and 4.6.  Am I missing 
something?

int func (void)
{
     int a = a;

     return a;
}



More information about the Gcc-help mailing list