aboutsummaryrefslogtreecommitdiff
path: root/contrib/intarray
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2023-12-29 18:01:53 +0100
committerPeter Eisentraut <peter@eisentraut.org>2023-12-29 18:20:00 +0100
commitc5385929593dd8499cfb5d85ac322e8ee1819fd4 (patch)
treedf87a0618dea5cb1d41f0cd9e1faad27320c0438 /contrib/intarray
parent7418767f11d11ca4003ed3e8e96296eabb2acfe1 (diff)
downloadpostgresql-c5385929593dd8499cfb5d85ac322e8ee1819fd4.tar.gz
postgresql-c5385929593dd8499cfb5d85ac322e8ee1819fd4.zip
Make all Perl warnings fatal
There are a lot of Perl scripts in the tree, mostly code generation and TAP tests. Occasionally, these scripts produce warnings. These are probably always mistakes on the developer side (true positives). Typical examples are warnings from genbki.pl or related when you make a mess in the catalog files during development, or warnings from tests when they massage a config file that looks different on different hosts, or mistakes during merges (e.g., duplicate subroutine definitions), or just mistakes that weren't noticed because there is a lot of output in a verbose build. This changes all warnings into fatal errors, by replacing use warnings; by use warnings FATAL => 'all'; in all Perl files. Discussion: https://www.postgresql.org/message-id/flat/06f899fd-1826-05ab-42d6-adeb1fd5e200%40eisentraut.org
Diffstat (limited to 'contrib/intarray')
-rwxr-xr-xcontrib/intarray/bench/bench.pl2
-rwxr-xr-xcontrib/intarray/bench/create_test.pl2
2 files changed, 2 insertions, 2 deletions
diff --git a/contrib/intarray/bench/bench.pl b/contrib/intarray/bench/bench.pl
index 067654986e2..ba8163ce112 100755
--- a/contrib/intarray/bench/bench.pl
+++ b/contrib/intarray/bench/bench.pl
@@ -3,7 +3,7 @@
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
use strict;
-use warnings;
+use warnings FATAL => 'all';
# make sure we are in a sane environment.
use DBI();
diff --git a/contrib/intarray/bench/create_test.pl b/contrib/intarray/bench/create_test.pl
index 6efe9151ca5..f6ffc5b4527 100755
--- a/contrib/intarray/bench/create_test.pl
+++ b/contrib/intarray/bench/create_test.pl
@@ -5,7 +5,7 @@
# contrib/intarray/bench/create_test.pl
use strict;
-use warnings;
+use warnings FATAL => 'all';
print <<EOT;
create table message (