perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philip M. Gollucci" <pgollu...@p6m7g8.com>
Subject Re: bugs_build TODO completed -Wdeclaration-after-statement
Date Wed, 10 Aug 2005 04:08:00 GMT
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 (pgollucci@p6m7g8.com) 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: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message