From: Dave Rolsky Date: Tue, 15 Sep 2009 04:24:57 +0000 (-0500) Subject: Add -Wdeclaration-after-statement since such things will break MSVC++ X-Git-Tag: 0.93~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=06e9254b15c98d778ed330d69384c855a09400e0;p=gitmo%2FClass-MOP.git Add -Wdeclaration-after-statement since such things will break MSVC++ --- diff --git a/Makefile.PL b/Makefile.PL index a872582..7edc92e 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -12,7 +12,10 @@ license 'perl'; require Config; my $ccflags = ( $Config::Config{ccflags} || '' ) . ' -I.'; -$ccflags .= ' -Wall' if -d '.svn' || -d '.git' || $ENV{MAINTAINER_MODE}; + +if ( -d '.git' || $ENV{MAINTAINER_MODE} ) { + $ccflags .= ' -Wall -Wdeclaration-after-statement'; +} requires 'Carp'; requires 'Devel::GlobalDestruction';