summaryrefslogtreecommitdiff
path: root/src
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:13 -0400
commit80370836f7563653390065b225ece4305aba3d57 (patch)
treebed420c6615961e02812f2c27eb629e7d6812152 /src
parent7df528312d10907aa79fb7c230e54cfcba9f4329 (diff)
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.
Diffstat (limited to 'src')
-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;