This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Missing warning about uninitialized variable.
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