Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3f94796

Browse files
committed
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 wesilence the deprecation warnings.Back-patch to 9.2 and 9.3 -- the newer branches already have this fix.Author: Peter EisentrautDiscussion:https://postgr.es/m/677.1483384145%40sss.pgh.pa.us
1 parent4983222 commit3f94796

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

‎config/programs.m4

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ if test "$BISON"; then
2323
*** Bison version 1.875 or later is required, but this is $pgac_bison_version.])
2424
BISON=""
2525
fi
26+
# Bison >=3.0 issues warnings about %name-prefix="base_yy", instead
27+
# of the now preferred %name-prefix "base_yy", but the latter
28+
# doesn't work with Bison 2.3 or less. So for now we silence the
29+
# deprecation warnings.
30+
if echo "$pgac_bison_version" | $AWK '{ if ([$]4 >= 3) exit 0; else exit 1;}'
31+
then
32+
BISONFLAGS="$BISONFLAGS -Wno-deprecated"
33+
fi
2634
fi
2735
2836
if test -z "$BISON"; then

‎configure

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7401,6 +7401,14 @@ $as_echo "$as_me: WARNING:
74017401
*** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
74027402
BISON=""
74037403
fi
7404+
# Bison >=3.0 issues warnings about %name-prefix="base_yy", instead
7405+
# of the now preferred %name-prefix "base_yy", but the latter
7406+
# doesn't work with Bison 2.3 or less. So for now we silence the
7407+
# deprecation warnings.
7408+
if echo "$pgac_bison_version" | $AWK '{ if ($4 >= 3) exit 0; else exit 1;}'
7409+
then
7410+
BISONFLAGS="$BISONFLAGS -Wno-deprecated"
7411+
fi
74047412
fi
74057413

74067414
if test -z "$BISON"; then

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp