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

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy