Subject: | Compilation failure on Fedora 28 with system perl (-Wformat=0?) |
See subject. A sample report at CPAN Testers may be found here: http://www.cpantesters.org/cpan/report/df308cb6-081e-11e9-a4dc-96702f49dc66
It seems that the extra -Wformat=0 in GD's ccflags is causing the problem. If I remove this option, e.g. like this:
diff --git a/Makefile.PL b/Makefile.PL
index dd0ad64..6929314 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -259,7 +259,7 @@ print F $DEFINES,"\n";
close F;
my $CCFLAGS = $Config{ccflags};
-$CCFLAGS .= " -Wall -Wextra -Wformat=0" if $Config{gccversion} and $] > 5.020;
+$CCFLAGS .= " -Wall -Wextra" if $Config{gccversion} and $] > 5.020;
my %WriteMakefileArgs = (
'NAME' => 'GD',
--- then compilation is successful.