postgrespro.git / summary / log / commit / refs

commit    71c2fd0c04a5daaaab5331879e23181bb52334e1
Author:   Andrew Dunstan <andrew@dunslane.net>
Date:     Fri Mar 20 17:55:15 2020 +0000

    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 895e398c08..490df83367 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; [parent: b03436994bcc]