diff options
author | Andrew Dunstan | 2020-04-13 15:55:45 +0000 |
---|---|---|
committer | Andrew Dunstan | 2020-04-13 15:55:45 +0000 |
commit | 7be5d8df1f74b78620167d3abf32ee607e728919 (patch) | |
tree | 030ea8b9fe1360b7670277c0af44e028de652497 /contrib/intarray | |
parent | 8930e43ecd3f683c457865131d7a932401a2188f (diff) |
Use perl warnings pragma consistently
We've had a mixture of the warnings pragma, the -w switch on the shebang
line, and no warnings at all. This patch removes the -w swicth and add
the warnings pragma to all perl sources missing it. It raises the
severity of the TestingAndDebugging::RequireUseWarnings perlcritic
policy to level 5, so that we catch any future violations.
Discussion: https://postgr.es/m/20200412074245.GB623763@rfd.leadboat.com
Diffstat (limited to 'contrib/intarray')
-rwxr-xr-x | contrib/intarray/bench/bench.pl | 1 | ||||
-rwxr-xr-x | contrib/intarray/bench/create_test.pl | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/contrib/intarray/bench/bench.pl b/contrib/intarray/bench/bench.pl index 92035d6c06a..daf3febc804 100755 --- a/contrib/intarray/bench/bench.pl +++ b/contrib/intarray/bench/bench.pl @@ -1,6 +1,7 @@ #!/usr/bin/perl use strict; +use warnings; # 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 d2c678bb53c..3f2a6e4da2a 100755 --- a/contrib/intarray/bench/create_test.pl +++ b/contrib/intarray/bench/create_test.pl @@ -3,6 +3,8 @@ # contrib/intarray/bench/create_test.pl use strict; +use warnings; + print <<EOT; create table message ( mid int not null, |