mirror of
https://github.com/postgres/postgres.git
synced 2025-06-05 23:56:58 +03:00
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.
This commit is contained in:
parent
ab14a73a6c
commit
55fb759ab3
@ -23,6 +23,14 @@ if test "$BISON"; then
|
|||||||
*** Bison version 1.875 or later is required, but this is $pgac_bison_version.])
|
*** Bison version 1.875 or later is required, but this is $pgac_bison_version.])
|
||||||
BISON=""
|
BISON=""
|
||||||
fi
|
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
|
fi
|
||||||
|
|
||||||
if test -z "$BISON"; then
|
if test -z "$BISON"; then
|
||||||
|
8
configure
vendored
8
configure
vendored
@ -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 version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
|
||||||
BISON=""
|
BISON=""
|
||||||
fi
|
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
|
fi
|
||||||
|
|
||||||
if test -z "$BISON"; then
|
if test -z "$BISON"; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user