Missing warning about uninitialized variable.

J.C. Pizarro jcpiza@gmail.com
Thu Nov 29 16:51:00 GMT 2007


On 2007/11/29, eschenb@informatik.uni-frankfurt.de
<eschenb@informatik.uni-frankfurt.de> wrote:
> If gcc should warn about it being potentially not initialized, and if so,
> using which command line options - that's a completely different topic.

Warn no! Error yes!

Why?

Many compilations of projects print many warnings as is they
have not problems! But ...

     For large projects with uninitialized variables, the behaviour
     could be stochasticly flawed as a russian roulette.

With Error instead of Warn, they abort the compilations for later
repairing of theirs bugs and avoiding the scenario of russian roulette.

 J.C.Pizarro



More information about the Gcc-help mailing list