Re: Missing warning about uninitialized variable.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2007/11/29, John Love-Jensen <eljay@xxxxxxxxx>:
> Hi J.C.,
>
> Just out of curiosity, what does the 4.2.3 compiler say (if anything) if the
> uninitialized warning is enabled?
>
> $ gcc -O -Wall -o foo foo.c
>
> Thanks,
> --Eljay
>
>

With -O, -O1, -O2, -O3, they print 5 times of value 3
Without optimization, it prints stochasticly random data.

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

  J.C.Pizarro

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux