This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
silence APItest deprecation warning
authorRobin Barker <rmbarker@cpan.org>
Mon, 23 Aug 2010 14:32:45 +0000 (15:32 +0100)
committerFlorian Ragwitz <rafl@debian.org>
Sat, 28 Aug 2010 11:08:48 +0000 (13:08 +0200)
ext/XS-APItest/Makefile.PL

index 10ce877..24b8f10 100644 (file)
@@ -1,6 +1,7 @@
 use 5.008;
 use ExtUtils::MakeMaker;
 use ExtUtils::Constant 0.11 'WriteConstants';
+use Config;
 # See lib/ExtUtils/MakeMaker.pm for details of how to influence
 # the contents of the Makefile that is written.
 WriteMakefile(
@@ -18,6 +19,8 @@ WriteMakefile(
        # Un-comment this if you add C files to link with later:
     # 'OBJECT'         => '$(O_FILES)', # link all the C files too
     realclean => {FILES        => 'const-c.inc const-xs.inc'},
+    ($Config{gccversion} && $Config{d_attribute_deprecated} ?
+      (CCFLAGS => '-Wno-deprecated-declarations') : ()),
 );
 
 WriteConstants(