diff options
author | Andrew Dunstan | 2020-03-20 17:55:15 +0000 |
---|---|---|
committer | Andrew Dunstan | 2020-03-20 17:55:15 +0000 |
commit | 71c2fd0c04a5daaaab5331879e23181bb52334e1 (patch) | |
tree | 97aad3913576dc7736534816185bc89d275c6439 | |
parent | b03436994bcc4909dd644fd5ae6d9a9acdf30da5 (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.
-rw-r--r-- | src/tools/msvc/pgbison.pl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tools/msvc/pgbison.pl b/src/tools/msvc/pgbison.pl index 895e398c08..490df83367 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; |