From 3a7cc727c7c502353dbb730a0db793abec4de44b Mon Sep 17 00:00:00 2001 From: Andrew Dunstan Date: Sun, 27 May 2018 09:08:42 -0400 Subject: Don't fall off the end of perl functions This complies with the perlcritic policy Subroutines::RequireFinalReturn, which is a severity 4 policy. Since we only currently check at severity level 5, the policy is raised to that level until we move to level 4 or lower, so that any new infringements will be caught. A small cosmetic piece of tidying of the pgperlcritic script is included. Mike Blackwell Discussion: https://postgr.es/m/CAESHdJpfFm_9wQnQ3koY3c91FoRQsO-fh02za9R3OEMndOn84A@mail.gmail.com --- src/tools/msvc/VCBuildProject.pm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/tools/msvc/VCBuildProject.pm') diff --git a/src/tools/msvc/VCBuildProject.pm b/src/tools/msvc/VCBuildProject.pm index 57b8525f3fe..03b890b9b74 100644 --- a/src/tools/msvc/VCBuildProject.pm +++ b/src/tools/msvc/VCBuildProject.pm @@ -56,6 +56,7 @@ EOF EOF $self->WriteReferences($f); + return; } sub WriteFiles @@ -152,6 +153,7 @@ EOF print $f < EOF + return; } sub Footer @@ -162,6 +164,7 @@ sub Footer EOF + return; } sub WriteConfiguration @@ -227,6 +230,7 @@ EOF print $f < EOF + return; } sub WriteReferences @@ -239,6 +243,7 @@ sub WriteReferences " {guid}\" Name=\"$ref->{name}\" />\n"; } print $f " \n"; + return; } sub GenerateCustomTool -- cgit v1.2.3