diff options
author | Andrew Dunstan <andrew@dunslane.net> | 2020-03-20 13:55:15 -0400 |
---|---|---|
committer | Andrew Dunstan <andrew@dunslane.net> | 2020-03-20 14:02:05 -0400 |
commit | d0747714e6ef193c16d1acf31c15f387877d591f (patch) | |
tree | 534f10492bda4b0aa940141fcc9d9aad52ea0c39 | |
parent | 9f62ea27e3f4095da38ba4cd6247043ab86f0b6a (diff) | |
download | postgresql-d0747714e6ef193c16d1acf31c15f387877d591f.tar.gz postgresql-d0747714e6ef193c16d1acf31c15f387877d591f.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.pl | 4 |
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; |