Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Remove non-existing variable reference in MSVC's Solution.pm
authorMichael Paquier <michael@paquier.xyz>
Sat, 26 Jun 2021 04:52:54 +0000 (13:52 +0900)
committerMichael Paquier <michael@paquier.xyz>
Sat, 26 Jun 2021 04:52:54 +0000 (13:52 +0900)
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

src/tools/msvc/Solution.pm

index 7f533b5ccf5fec10885d2656045794f8577729a9..e3e931e7c119e4f019812c0032f06c4bd6a41438 100644 (file)
@@ -171,7 +171,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);