DBD-Oracle
DBD-Oracle copied to clipboard
gcc version warning in Makefile.PL
Line 889-890 in Makefile.PL are now: 889: print "WARNING: Your GNU C compiler is very old. Please upgrade.\n" 890: if ($Config{gccversion} and $Config{gccversion} =~ m/^(1|2.[1-5])/);
Now regexp in 890 throws the "WARNING:..." with "gcc=10." and "gcc=20." If 890 is changed to 890: if ($Config{gccversion} and $Config{gccversion} =~ m/^(\b[1].\d|\b[2].\b[0-5].)/);
no "WARNING:..." will be thrown for any gcc version > 2.5
I tested it with the following code snippet:
for m in {1..20} ; do \ for s in {0..20} ; do \ for u in {0..20} ; do \ echo "Version: "$m.$s.$u $(/usr/bin/perl -e "my \$version='"$m.$s.$u"';print 'WARNING: Your GNU C compiler is very old. Please upgrade.' if (\$version =~ m/^(\b[1]\.\d|\b[2]\.\b[0-5]\.)/);") && echo ; \ done ; \ done ; \ done | grep -i warning