aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2020-03-20 13:55:15 -0400
committerAndrew Dunstan <andrew@dunslane.net>2020-03-20 14:02:15 -0400
commite8a6391fc1837416b7251f62485323af01789559 (patch)
treeb98d1d9d78798924d5399de7c953a83808df2b96
parent6802942fa2a638c6f5614e56546af276308cf4bd (diff)
downloadpostgresql-e8a6391fc1837416b7251f62485323af01789559.tar.gz
postgresql-e8a6391fc1837416b7251f62485323af01789559.zip
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.
-rw-r--r--src/tools/msvc/pgbison.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tools/msvc/pgbison.pl b/src/tools/msvc/pgbison.pl
index 895e398c08c..490df833673 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;