Dubious "'foo' might be used uninitialized in this function" message

Dave Korn dave.korn@artimi.com
Wed Dec 15 18:03:00 GMT 2004

> -----Original Message-----
> From: gcc-owner On Behalf Of Joe Buck
> Sent: 15 December 2004 17:22

> This case and many other common cases that gcc gives false reports
> on could be solved by using a gated SSA approach (which would, as you
> suggest, determine that the two tests have the same truth value).
> However, using such an approach goes against the desire by many people
> that the warnings they get at -O0 be the same as those for 
> higher levels.

  Ummmm.. I thought the 'may be used uninited' warning could only occur at > O0

Can't think of a witty .sigline today....

More information about the Gcc mailing list