Skip to content

Commit d074771

Browse files
committed
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.
1 parent 9f62ea2 commit d074771

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/tools/msvc/pgbison.pl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,7 @@
4545
my $basetarg = basename($output);
4646
my $headerflag = ($make =~ /^$basetarg:\s+BISONFLAGS\b.*-d/m ? '-d' : '');
4747

48-
system("bison $headerflag $input -o $output");
48+
my $nodep = $bisonver ge '3.0' ? "-Wno-deprecated" : "";
49+
50+
system("bison $nodep $headerflag $input -o $output");
4951
exit $? >> 8;

0 commit comments

Comments
 (0)