summaryrefslogtreecommitdiff
path: root/src/interfaces/libpq/test
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/interfaces/libpq/test
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/[email protected]
Diffstat (limited to 'src/interfaces/libpq/test')
-rw-r--r--src/interfaces/libpq/test/regress.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/interfaces/libpq/test/regress.pl b/src/interfaces/libpq/test/regress.pl
index 3ad638a91b7..54db4f1abfc 100644
--- a/src/interfaces/libpq/test/regress.pl
+++ b/src/interfaces/libpq/test/regress.pl
@@ -1,6 +1,7 @@
-#!/usr/bin/perl -w
+#!/usr/bin/perl
use strict;
+use warnings;
# use of SRCDIR/SUBDIR is required for supporting VPath builds
my $srcdir = $ENV{'SRCDIR'} or die 'SRCDIR environment variable is not set';