This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c/5582: warn about using the extension "int x=x;"
- From: Wolfgang Bangerth <bangerth at ticam dot utexas dot edu>
- To: Volker Reichelt <reichelt at igpm dot rwth-aachen dot de>
- Cc: pcarlini at unitus dot it, <aoliva at redhat dot com>, <dewar at gnat dot com>, <gcc-gnats at gcc dot gnu dot org>, <coola at ngs dot ru>, <gcc-bugs at gcc dot gnu dot org>, <bangerth at dealii dot org>
- Date: Wed, 8 Jan 2003 08:24:46 -0600 (CST)
- Subject: 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/