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:03:31 -0400
commit467b408321e4d3d7a753ecd8d651bf036ce9f3b7 (patch)
treec4c6b4d4af338aca71a4b7732167c4d17ab37430
parent2c9864e5160672274c3e94c37cfaee5cab125cbf (diff)
downloadpostgresql-467b408321e4d3d7a753ecd8d651bf036ce9f3b7.tar.gz
postgresql-467b408321e4d3d7a753ecd8d651bf036ce9f3b7.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 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;