diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2014-06-03 22:36:35 -0400 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2014-06-03 22:36:35 -0400 |
commit | 55fb759ab3e7543a6be72a35e6b6961455c5b393 (patch) | |
tree | 8661ddf735336d48be88113237b4c4f73a55a931 | |
parent | ab14a73a6ca5cc4750f0e00a48bdc25a2293034a (diff) | |
download | postgresql-55fb759ab3e7543a6be72a35e6b6961455c5b393.tar.gz |
Silence Bison deprecation warnings
Bison >=3.0 issues warnings about
%name-prefix="base_yy"
instead of the now preferred
%name-prefix "base_yy"
but the latter doesn't work with Bison 2.3 or less. So for now we
silence the deprecation warnings.
-rw-r--r-- | config/programs.m4 | 8 | ||||
-rwxr-xr-x | configure | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/config/programs.m4 b/config/programs.m4 index fd3a9a4791..76c0158973 100644 --- a/config/programs.m4 +++ b/config/programs.m4 @@ -23,6 +23,14 @@ if test "$BISON"; then *** Bison version 1.875 or later is required, but this is $pgac_bison_version.]) BISON="" fi + # Bison >=3.0 issues warnings about %name-prefix="base_yy", instead + # of the now preferred %name-prefix "base_yy", but the latter + # doesn't work with Bison 2.3 or less. So for now we silence the + # deprecation warnings. + if echo "$pgac_bison_version" | $AWK '{ if ([$]4 >= 3) exit 0; else exit 1;}' + then + BISONFLAGS="$BISONFLAGS -Wno-deprecated" + fi fi if test -z "$BISON"; then @@ -7075,6 +7075,14 @@ $as_echo "$as_me: WARNING: *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;} BISON="" fi + # Bison >=3.0 issues warnings about %name-prefix="base_yy", instead + # of the now preferred %name-prefix "base_yy", but the latter + # doesn't work with Bison 2.3 or less. So for now we silence the + # deprecation warnings. + if echo "$pgac_bison_version" | $AWK '{ if ($4 >= 3) exit 0; else exit 1;}' + then + BISONFLAGS="$BISONFLAGS -Wno-deprecated" + fi fi if test -z "$BISON"; then |