From 3ba7f29e393c28861e15e113ed3c9698bd00ef6f Mon Sep 17 00:00:00 2001 From: Luc Van Oostenryck Date: Wed, 15 Jul 2020 14:38:46 +0200 Subject: attribute: directly use attribute_specifier() to handle attributes handle_attributes() used to also handle asm names and so used the declarator method associated to the taken. But now, asm names are handled in a separated function. So, directly use attribute_specifier() to handle the attributes instead of using it via the declarator method. Signed-off-by: Luc Van Oostenryck --- parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parse.c b/parse.c index ec675f20..14b1746d 100644 --- a/parse.c +++ b/parse.c @@ -1816,7 +1816,7 @@ static struct token *handle_attributes(struct token *token, struct decl_state *c break; if (!(keyword->op->type & KW_ATTRIBUTE)) break; - token = keyword->op->declarator(token->next, ctx); + token = attribute_specifier(token->next, ctx); } return token; } -- cgit 1.2.3-korg