Content-Length: 259784 | pFad | http://github.com/postgrespro/postgres/commit/71c2fd0c04a5daaaab5331879e23181bb52334e1

42 Turn off deprecated bison warnings under MSVC · postgrespro/postgres@71c2fd0 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/71c2fd0c04a5daaaab5331879e23181bb52334e1

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy