From: Andrew Dunstan Date: Fri, 20 Mar 2020 17:55:15 +0000 (-0400) Subject: Turn off deprecated bison warnings under MSVC X-Git-Tag: REL9_6_18~64 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=80370836f7563653390065b225ece4305aba3d57;p=thirdparty%2Fpostgresql.git 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. --- 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;