postgres.git / summary / log / commit / refs
commit 467b408321e4d3d7a753ecd8d651bf036ce9f3b7
Author: Andrew Dunstan <andrew@dunslane.net>
Date: Fri Mar 20 17:55:15 2020 +0000
First released in: 13.0, 9.5.22, 9.6.18, 10.13, 11.8, 12.3
Turn off deprecated bison warnings under MSVC
These are disabled by the configure code, so this is just fixing an
inconsistency in the MSVC code.
Backpatch to all live branches.
src/tools/msvc/pgbison.pl | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/tools/msvc/pgbison.pl b/src/tools/msvc/pgbison.pl
index 7d0f784aa83..9eec12518ed 100644
--- a/src/tools/msvc/pgbison.pl
+++ b/src/tools/msvc/pgbison.pl
@@ -45,5 +45,7 @@ close($mf);
my $basetarg = basename($output);
my $headerflag = ($make =~ /^$basetarg:\s+BISONFLAGS\b.*-d/m ? '-d' : '');
-system("bison $headerflag $input -o $output");
+my $nodep = $bisonver ge '3.0' ? "-Wno-deprecated" : "";
+
+system("bison $nodep $headerflag $input -o $output");
exit $? >> 8;
[parent: 2c9864e51606]