From: Tom Hromatka Date: Tue, 27 Apr 2021 19:24:41 +0000 (+0000) Subject: parse.y: Fix nonterminal %type warnings X-Git-Tag: v2.0~2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F41%2Fhead;p=thirdparty%2Flibcgroup.git parse.y: Fix nonterminal %type warnings Fix the following warnings in parse.y: ../parse.y:48.14-15: warning: POSIX yacc reserves %type to nonterminals [-Wyacc] 48 | %type ID DEFAULT group_name | ^~ ../parse.y:48.17-23: warning: POSIX yacc reserves %type to nonterminals [-Wyacc] 48 | %type ID DEFAULT group_name | ^~~~~~~ Signed-off-by: Tom Hromatka --- diff --git a/src/parse.y b/src/parse.y index e67ad54e..e2e6cb16 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 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 ID DEFAULT group_name +%type group_name %type mountvalue_conf mount task_namevalue_conf admin_namevalue_conf %type admin_conf task_conf task_or_admin group_conf group start %type namespace namespace_conf default default_conf