[PATCH] Switch from bison name-prefix to api.prefix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Avoid a deprecation warning when building.

api.prefix was first released in bison 2.6, which was released in July
2012 [1].  name-prefix was deprecated in favor of api.prefix in bison
3.3, released January 2019 [2].

The new api.prefix construct rewrites additional variables when compared
to name-prefix, such as YYTYPE and YYDEBUG. However, these variables are
unused currently in conf-parse.y, so this does not affect libsemanage.

[1] http://savannah.gnu.org/news/?id=7269
[2] http://savannah.gnu.org/news/?id=9321

Signed-off-by: Daniel Burgener <dburgener@xxxxxxxxxxxxxxxxxxx>
---
 libsemanage/src/conf-parse.y | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libsemanage/src/conf-parse.y b/libsemanage/src/conf-parse.y
index 6cb8a598..93a04699 100644
--- a/libsemanage/src/conf-parse.y
+++ b/libsemanage/src/conf-parse.y
@@ -53,7 +53,7 @@ static int parse_errors;
 
 %}
 
-%name-prefix "semanage_"
+%define api.prefix {semanage_}
 
 %union {
         int d;
-- 
2.34.1





[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux