On Sat, 23 Apr 2005 22:37:48 -0500, Steve Peters <[EMAIL PROTECTED]>
wrote:

> Yesterday, I created a patch that broke bleadperl thanks to gcc allowing
> declarations after statements.  Starting with gcc 3.0, this has been allowed
> to follow C99 standards.  Unfortunately, many compilers are not up to this
> standard completely yet.  gcc did add a new warning,
> -Wdeclaration-after-statement, which will produce a warning in these 
> situations. 
> 
> Attached is a patch that follows some of the other tests for various 
> additions to the default ccflags for gcc.  I have tested this patch to 
> make sure it will catch these warnings in gcc-3.4.4 and gcc-4.0.0.  On a
> gcc-2.95.3 system (which does use this flag), it won't be used and 
> declarations after statements are caught as a syntax error by gcc as
> expected.
> 
> Questions and comments are appreciated.

Applies too?

Applied as change #24313

-- 
H.Merijn Brand        Amsterdam Perl Mongers (http://amsterdam.pm.org/)
using Perl 5.6.2, 5.8.0, 5.8.5, & 5.9.2  on HP-UX 10.20, 11.00 & 11.11,
 AIX 4.3 & 5.2, SuSE 9.2 & 9.3, and Cygwin. http://www.cmve.net/~merijn
Smoking perl: http://www.test-smoke.org,    perl QA: http://qa.perl.org
 reports  to: [EMAIL PROTECTED],                [email protected]

Reply via email to