Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 71c2fd0

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 b034369 commit 71c2fd0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/tools/msvc/pgbison.pl

+3-1
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)