This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c/5582: warn about using the extension "int x=x;"


> You get no error/warning, if you try to compile the code inside a
> function, ie. "void foo() { int x=x; }".
> But that's not a gcc extension, just a missing warning about the use of
> an uninitialized variable.

Sure. IIRC the extension is that this reliably calms down warnings about 
uninitialized variables.

W.

-------------------------------------------------------------------------
Wolfgang Bangerth             email:            bangerth@ticam.utexas.edu
                              www: http://www.ticam.utexas.edu/~bangerth/



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]