From 80370836f7563653390065b225ece4305aba3d57 Mon Sep 17 00:00:00 2001 From: Andrew Dunstan Date: Fri, 20 Mar 2020 13:55:15 -0400 Subject: [PATCH] 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. --- src/tools/msvc/pgbison.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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;