Re: comiler warnings

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

 



On 12/25/05, Tom Emerson wrote:
> > for(unsigned i;i<10;++i){
> >     do something with "i";
> > }
> Presumably because with -g the uninitialized variable check isn't
> performed. The behavior of that code is undefined: you really want to
> be initializing that loop variable.

 Is it a compiler's bug that it doesn't warn about it in debug mode ?

Thank you,
 Dima.


[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