Fix the following warnings in parse.y:
../parse.y:48.14-15: warning: POSIX yacc reserves %type to nonterminals [-Wyacc]
48 | %type <name> ID DEFAULT group_name
| ^~
../parse.y:48.17-23: warning: POSIX yacc reserves %type to nonterminals [-Wyacc]
48 | %type <name> ID DEFAULT group_name
| ^~~~~~~
Signed-off-by: Tom Hromatka <[email protected]>
---
src/parse.y | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/parse.y b/src/parse.y
index e67ad54e6f34..e2e6cb168648 100644
--- a/src/parse.y
+++ b/src/parse.y
@@ -37,7 +37,7 @@ int yywrap(void)
%}
-%token ID MOUNT GROUP PERM TASK ADMIN NAMESPACE DEFAULT TEMPLATE
+%token <name> ID MOUNT GROUP PERM TASK ADMIN NAMESPACE DEFAULT TEMPLATE
%union {
char *name;
@@ -45,7 +45,7 @@ int yywrap(void)
int val;
struct cgroup_dictionary *values;
}
-%type <name> ID DEFAULT group_name
+%type <name> group_name
%type <val> mountvalue_conf mount task_namevalue_conf admin_namevalue_conf
%type <val> admin_conf task_conf task_or_admin group_conf group start
%type <val> namespace namespace_conf default default_conf
--
2.25.1
_______________________________________________
Libcg-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libcg-devel