Revised:

Index: Build.pm
===================================================================
--- Build.pm    (revision 230957)
+++ Build.pm    (working copy)
@@ -518,10 +518,20 @@

     if ($self->{MP_MAINTAINER}) {
         $self->{MP_DEBUG} = 1;
-        if ($self->perl_config('gccversion')) {
+
+        if (my $gccversion = $self->perl_config('gccversion')) {
             #same as --with-maintainter-mode
             $ccopts .= " $Wall -DAP_DEBUG";
             $ccopts .= " -DAP_HAVE_DESIGNATED_INITIALIZER";
+
+            my ($gcc_major, $gcc_minor, $gcc_patch) =
+                $gccversion =~ /^(\d)\.(\d+)\.(\d+)/;
+
+            ## GCC 3.3.2+
+            if ($gcc_major >= 3 && $gcc_minor >= 3 &&
+                $gcc_patch >= 2) {
+              $ccopts .= " -Wdeclaration-after-statement";
+            }
         }
     }


--
END
------------------------------------------------------------
    What doesn't kill us can only make us stronger.
                Nothing is impossible.
                                
Philip M. Gollucci ([EMAIL PROTECTED]) 301.254.5198
Consultant / http://p6m7g8.net/Resume/
Senior Developer / Liquidity Services, Inc.
  http://www.liquidityservicesinc.com
       http://www.liquidation.com
       http://www.uksurplus.com
       http://www.govliquidation.com
       http://www.gowholesale.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to