This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -std=c89 shouldn't allow post-statement declarations
The fact remains that the behavior of -std=c89 with respect to
post-statement declarations was changed between 2.96 and 3.2.2.
Was this intentional? If so, what was the rationale? I think it
was a bad idea.
> This message could also be considered a hint that
> <http://gcc.gnu.org/ml/gcc-patches/2003-07/msg01663.html> still needs
> review: that patch is OK with the addition of a cross-reference to the
> "Mixed Declarations" section of the manual that documents this as an
> extension. So 3.4 should have a specific warning option for this.
Cool, having a -Wdeclaration-after-statement would also satisfy me
(though I'd rather it be an error, as it was before, without going
as far as making *all* warnings be errors.)
--
Jamie Zawinski
jwz@jwz.org http://www.jwz.org/
jwz@dnalounge.com http://www.dnalounge.com/