summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZack Weinberg <zackw@panix.com>2020-08-31 11:37:19 -0400
committerZack Weinberg <zackw@panix.com>2020-08-31 13:15:46 -0400
commit41edf99f9515f3f83398428c39d79e11266a5a0d (patch)
tree387ca6e0b18a80eed174d993e76091e80bfe27ee
parentc14739e7c6e5906197b704af91152cbc0a8ab38b (diff)
downloadautoconf-41edf99f9515f3f83398428c39d79e11266a5a0d.tar.gz
Fatalize all warnings in Perl code.
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.
-rw-r--r--bin/autoheader.in2
-rw-r--r--bin/autom4te.in2
-rw-r--r--bin/autoreconf.in2
-rw-r--r--bin/autoscan.in2
-rw-r--r--bin/autoupdate.in2
-rw-r--r--bin/ifnames.in2
-rw-r--r--lib/Autom4te/C4che.pm2
-rw-r--r--lib/Autom4te/ChannelDefs.pm2
-rw-r--r--lib/Autom4te/Channels.pm2
-rw-r--r--lib/Autom4te/Configure_ac.pm2
-rw-r--r--lib/Autom4te/FileUtils.pm2
-rw-r--r--lib/Autom4te/General.pm2
-rw-r--r--lib/Autom4te/Request.pm2
-rw-r--r--lib/Autom4te/XFile.pm2
14 files changed, 14 insertions, 14 deletions
diff --git a/bin/autoheader.in b/bin/autoheader.in
index 3068e2b0..64f90de4 100644
--- a/bin/autoheader.in
+++ b/bin/autoheader.in
@@ -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
{
diff --git a/bin/autom4te.in b/bin/autom4te.in
index f03fef07..78902f13 100644
--- a/bin/autom4te.in
+++ b/bin/autom4te.in
@@ -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
{
diff --git a/bin/autoreconf.in b/bin/autoreconf.in
index a3424f95..73de08a7 100644
--- a/bin/autoreconf.in
+++ b/bin/autoreconf.in
@@ -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
{
diff --git a/bin/autoscan.in b/bin/autoscan.in
index ef7e0c12..83e6d8f4 100644
--- a/bin/autoscan.in
+++ b/bin/autoscan.in
@@ -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
{
diff --git a/bin/autoupdate.in b/bin/autoupdate.in
index c4ae4bde..3f13254b 100644
--- a/bin/autoupdate.in
+++ b/bin/autoupdate.in
@@ -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
{
diff --git a/bin/ifnames.in b/bin/ifnames.in
index 72abe881..075ff3eb 100644
--- a/bin/ifnames.in
+++ b/bin/ifnames.in
@@ -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
{
diff --git a/lib/Autom4te/C4che.pm b/lib/Autom4te/C4che.pm
index 2032f59c..225fa203 100644
--- a/lib/Autom4te/C4che.pm
+++ b/lib/Autom4te/C4che.pm
@@ -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;
diff --git a/lib/Autom4te/ChannelDefs.pm b/lib/Autom4te/ChannelDefs.pm
index 24e4bb61..15f583cf 100644
--- a/lib/Autom4te/ChannelDefs.pm
+++ b/lib/Autom4te/ChannelDefs.pm
@@ -49,7 +49,7 @@ shorthand function to output on specific channels.
use 5.006;
use strict;
-use warnings;
+use warnings FATAL => 'all';
use Exporter;
diff --git a/lib/Autom4te/Channels.pm b/lib/Autom4te/Channels.pm
index f2f4b997..020f6ad7 100644
--- a/lib/Autom4te/Channels.pm
+++ b/lib/Autom4te/Channels.pm
@@ -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;
diff --git a/lib/Autom4te/Configure_ac.pm b/lib/Autom4te/Configure_ac.pm
index f84e7336..3a12dbfb 100644
--- a/lib/Autom4te/Configure_ac.pm
+++ b/lib/Autom4te/Configure_ac.pm
@@ -22,7 +22,7 @@ package Autom4te::Configure_ac;
use 5.006;
use strict;
-use warnings;
+use warnings FATAL => 'all';
use Exporter;
diff --git a/lib/Autom4te/FileUtils.pm b/lib/Autom4te/FileUtils.pm
index ef1a2a7f..9ac99cb8 100644
--- a/lib/Autom4te/FileUtils.pm
+++ b/lib/Autom4te/FileUtils.pm
@@ -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;
diff --git a/lib/Autom4te/General.pm b/lib/Autom4te/General.pm
index 922e4767..95e9bde9 100644
--- a/lib/Autom4te/General.pm
+++ b/lib/Autom4te/General.pm
@@ -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;
diff --git a/lib/Autom4te/Request.pm b/lib/Autom4te/Request.pm
index 0b97615d..b3be33c7 100644
--- a/lib/Autom4te/Request.pm
+++ b/lib/Autom4te/Request.pm
@@ -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;
diff --git a/lib/Autom4te/XFile.pm b/lib/Autom4te/XFile.pm
index f858593f..249cbd30 100644
--- a/lib/Autom4te/XFile.pm
+++ b/lib/Autom4te/XFile.pm
@@ -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;