=================================================================== --- lib/Apache2/Build.pm (revision 230957) +++ lib/Apache2/Build.pm (working copy) @@ -518,10 +518,21 @@ 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+)/; + + my $gccversion_decimal = $gcc_major . + $gcc_minor . $gcc_patch; + + ## GCC 3.3.2+ + if ($gccversion_decimal > 332) { + $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]
Third and final take. No objects and I'll commit. I combined all 3 of
the verions. :) Who would have thought something so small would take so
long?
- -Wdeclaration-after-statement Final version Philip M. Gollucci
- Re: -Wdeclaration-after-statement Final version Philippe M. Chiasson
- Re: -Wdeclaration-after-statement Final vers... Philip M. Gollucci
- Re: -Wdeclaration-after-statement Final ... Philippe M. Chiasson
- Re: -Wdeclaration-after-statement Fi... Philip M. Gollucci
- Re: -Wdeclaration-after-stateme... Philippe M. Chiasson
- Re: -Wdeclaration-after-sta... Philip M. Gollucci
- Re: -Wdeclaration-after... Andy_Bach
- Re: -Wdeclaration-after... Geoffrey Young
- Re: -Wdeclaration-after... Philippe M. Chiasson
- Re: -Wdeclaration-after... Philip M. Gollucci