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 Tue, 09 Aug 2005 18:44:07 GMT
Philippe M. Chiasson wrote:
> Isn't that my ^^^ redundant ?
YES. You would have thought I would have gotten a  warning from perl.
> I suspect the version parsing could be simplified to something
> more explicit like this :
I do too, but I'm not that familiar with GCC version numbers.  Is there 
never a case where its i.e.: 3.0 or 3?
> my ($maj, $min, $patch) = $gccversion =~ /^(\d+)\.(\d+)\.(\d+)/;
>  or
> my ($maj, $min, $patch) = split /\./, $gccversion;
> 
> #Gcc 3.3.2 and higher
> if ($maj >= 3 && $min >= 3 && $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/resume.shtml
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