]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Fatalize all warnings in Perl code.
authorZack Weinberg <zackw@panix.com>
Mon, 31 Aug 2020 15:37:19 +0000 (11:37 -0400)
committerZack Weinberg <zackw@panix.com>
Mon, 31 Aug 2020 17:15:46 +0000 (13:15 -0400)
Search-and-replace change ‘use warnings;’ to ‘use warnings FATAL => 'all';’
in all Perl code.

Notwithstanding the dire cautions in ‘perldoc warnings’ about this,
I think it’s the right call for us.  One file was already doing it.
No new testsuite failures are observed on Linux with Perl 5.30.3
nor on NetBSD with Perl 5.6.1.

* bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in
* bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in
* lib/Autom4te/C4che.pm, lib/Autom4te/ChannelDefs.pm
* lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm
* lib/Autom4te/FileUtils.pm, lib/Autom4te/General.pm
* lib/Autom4te/Request.pm, lib/Autom4te/XFile.pm:
  Make all warnings from the Perl interpreter into fatal errors.

14 files changed:
bin/autoheader.in
bin/autom4te.in
bin/autoreconf.in
bin/autoscan.in
bin/autoupdate.in
bin/ifnames.in
lib/Autom4te/C4che.pm
lib/Autom4te/ChannelDefs.pm
lib/Autom4te/Channels.pm
lib/Autom4te/Configure_ac.pm
lib/Autom4te/FileUtils.pm
lib/Autom4te/General.pm
lib/Autom4te/Request.pm
lib/Autom4te/XFile.pm

index 3068e2b0601626c7c337298e30a46fa7a895b54a..64f90de4885e0eec029a494df9ad7e1a29b9cb48 100644 (file)
@@ -28,7 +28,7 @@ eval 'case $# in 0) exec @PERL@ -S "$0";; *) exec @PERL@ -S "$0" "$@";; esac'
 
 use 5.006;
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 BEGIN
 {
index f03fef0774694a5f6bef474750a8ec456d6e9abd..78902f13dec381cc3d5f226e75bc6d1be928397c 100644 (file)
@@ -24,7 +24,7 @@ eval 'case $# in 0) exec @PERL@ -S "$0";; *) exec @PERL@ -S "$0" "$@";; esac'
 
 use 5.006;
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 BEGIN
 {
index a3424f952aae173c398b8db5b970f6b786af470a..73de08a7561f9c17f5edbad4f17edee940f4d437 100644 (file)
@@ -26,7 +26,7 @@ eval 'case $# in 0) exec @PERL@ -S "$0";; *) exec @PERL@ -S "$0" "$@";; esac'
 
 use 5.006;
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 BEGIN
 {
index ef7e0c12b41ccfe945e407ef2024716d1d840862..83e6d8f4441559778a67a6aad8156ab83bf02e26 100644 (file)
@@ -25,7 +25,7 @@ eval 'case $# in 0) exec @PERL@ -S "$0";; *) exec @PERL@ -S "$0" "$@";; esac'
 
 use 5.006;
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 BEGIN
 {
index c4ae4bdea5dbfcfa3888f182eb878b0349e27b72..3f13254b2b322c2d25d50ab0823bb92d535a1261 100644 (file)
@@ -26,7 +26,7 @@ eval 'case $# in 0) exec @PERL@ -S "$0";; *) exec @PERL@ -S "$0" "$@";; esac'
 
 use 5.006;
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 BEGIN
 {
index 72abe8811406b190b9dd75462eeeb7f9548c4f5b..075ff3eb71dab4345428cb90c0962d36f0679e4c 100644 (file)
@@ -31,7 +31,7 @@ eval 'case $# in 0) exec @PERL@ -S "$0";; *) exec @PERL@ -S "$0" "$@";; esac'
 
 use 5.006;
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 BEGIN
 {
index 2032f59c502b03f7b2611ab52486254f6f058506..225fa2032d16f36c19cd27a029c8c7a877cd91b8 100644 (file)
@@ -33,7 +33,7 @@ This Perl module handles the cache of M4 runs used by autom4te.
 
 use 5.006;
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use Carp;
 use Data::Dumper;
index 24e4bb610177a880998b3a500b939ba3f7e70f90..15f583cf04228e115e09673d3f1d4c642f3c0add 100644 (file)
@@ -49,7 +49,7 @@ shorthand function to output on specific channels.
 
 use 5.006;
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use Exporter;
 
index f2f4b997d880f2ff5d2ffb2ba206ff67608c909c..020f6ad7cd4fe76b4698f03d89c7489e199fd2a9 100644 (file)
@@ -68,7 +68,7 @@ etc.) that can also be overridden on a per-message basis.
 
 use 5.006;
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use Carp;
 use Exporter;
index f84e733612f2bbbf037eb96c9332e94b041cd590..3a12dbfbb50b136dcd01716e8648bcac0c7cc42b 100644 (file)
@@ -22,7 +22,7 @@ package Autom4te::Configure_ac;
 
 use 5.006;
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use Exporter;
 
index ef1a2a7f46b083270d5d78aaf0db8396f602c65e..9ac99cb8a50891cb3bdde560a47962a1753edf6d 100644 (file)
@@ -36,7 +36,7 @@ This perl module provides various general purpose file handling functions.
 
 use 5.006;
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use Exporter;
 use File::stat;
index 922e4767b8bd9fadd98499a21d119b12a235f592..95e9bde93d3500803f22aaaebf29e7af9c9d110e 100644 (file)
@@ -34,7 +34,7 @@ used in several executables of the Autoconf package.
 
 use 5.006;
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use Carp;
 use Exporter;
index 0b97615dafb17acbe1d2b28b516ae2484495bf83..b3be33c7bb94ed362d16e3a94dda20c32274c252 100644 (file)
@@ -34,7 +34,7 @@ used in several executables of the Autoconf and Automake packages.
 
 use 5.006;
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use Carp;
 use Class::Struct;
index f858593f4223341921132ff5b19c929887d092d9..249cbd302c0b93210d78bb9ee4a56e101010d313 100644 (file)
@@ -71,7 +71,7 @@ and C<getlines> methods to translate C<\r\n> to C<\n>.
 
 use 5.006;
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use Errno;
 use Exporter;