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]

[Bug c/12719] Variables declaration can be anywhere.


------- 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


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