This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/12719] Variables declaration can be anywhere.
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Feb 2005 06:32:27 -0000
- Subject: [Bug c/12719] Variables declaration can be anywhere.
- References: <20031022074906.12719.albie@alfarrabio.di.uminho.pt>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-02-07 06:32 -------
(In reply to comment #3)
In 3.4.0 and above there is already a warning for this:
-Wdeclaration-after-statement
As mentioned this is standard C99 code also (yes most C compilers are not C99 compilers but just C90
ones) which is why the warning was added. (another way to get the warning is with -pedantic but that
adds other warnings too which you might not want).
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|critical |normal
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12719