summaryrefslogtreecommitdiff
path: root/src/pl/plperl
diff options
context:
space:
mode:
authorAndrew Dunstan2020-04-13 15:55:45 +0000
committerAndrew Dunstan2020-04-13 15:55:45 +0000
commit7be5d8df1f74b78620167d3abf32ee607e728919 (patch)
tree030ea8b9fe1360b7670277c0af44e028de652497 /src/pl/plperl
parent8930e43ecd3f683c457865131d7a932401a2188f (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 'src/pl/plperl')
-rw-r--r--src/pl/plperl/plc_perlboot.pl1
-rw-r--r--src/pl/plperl/plperl_opmask.pl2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/pl/plperl/plc_perlboot.pl b/src/pl/plperl/plc_perlboot.pl
index f41aa80e80b..ee1b9bf4634 100644
--- a/src/pl/plperl/plc_perlboot.pl
+++ b/src/pl/plperl/plc_perlboot.pl
@@ -1,6 +1,7 @@
# src/pl/plperl/plc_perlboot.pl
use strict;
+use warnings;
use 5.008001;
use vars qw(%_SHARED $_TD);
diff --git a/src/pl/plperl/plperl_opmask.pl b/src/pl/plperl/plperl_opmask.pl
index e4e64b843f2..3b33112ff94 100644
--- a/src/pl/plperl/plperl_opmask.pl
+++ b/src/pl/plperl/plperl_opmask.pl
@@ -1,4 +1,4 @@
-#!perl -w
+#!perl
use strict;
use warnings;