aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2021-06-26 13:52:48 +0900
committerMichael Paquier <michael@paquier.xyz>2021-06-26 13:52:48 +0900
commitd5a2c413fcdd187dc16c4fab16610af7d4849cc1 (patch)
tree7f31aebc7fda1de7a056c938753c373a49be9dc8
parent704e1dbd9aa29a0b46c356f1803ad55cbdef2c20 (diff)
downloadpostgresql-d5a2c413fcdd187dc16c4fab16610af7d4849cc1.tar.gz
postgresql-d5a2c413fcdd187dc16c4fab16610af7d4849cc1.zip
Remove non-existing variable reference in MSVC's Solution.pm
The version string is grabbed from PACKAGE_VERSION in pg_config.h in the MSVC build since 8f4fb4c6, but an error message referenced a variable that existed before that. This had no consequences except if one messes up enough with the version number of the build. Author: Anton Voloshin Discussion: https://postgr.es/m/af79ee1b-9962-b299-98e1-f90a289e19e6@postgrespro.ru Backpatch-through: 13
-rw-r--r--src/tools/msvc/Solution.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/msvc/Solution.pm b/src/tools/msvc/Solution.pm
index a7b8f720b55..fcb43b0ca05 100644
--- a/src/tools/msvc/Solution.pm
+++ b/src/tools/msvc/Solution.pm
@@ -176,7 +176,7 @@ sub GenerateFiles
if ($package_version !~ /^(\d+)(?:\.(\d+))?/)
{
- confess "Bad format of version: $self->{strver}\n";
+ confess "Bad format of version: $package_version\n";
}
$majorver = sprintf("%d", $1);
$minorver = sprintf("%d", $2 ? $2 : 0);