1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-06 19:59:18 +03:00

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.
This commit is contained in:
Andrew Dunstan 2020-03-20 13:55:15 -04:00
parent 7df528312d
commit 80370836f7

View File

@ -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;