From 77cf443ad02d6cc54009edccc84faaebfc3953eb Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Thu, 13 Mar 2008 18:30:31 +0000 Subject: [PATCH] Fixed the grammar for parameter-declaration --- src/parser.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/parser.c b/src/parser.c index f07cfb9..0bb76ff 100644 --- a/src/parser.c +++ b/src/parser.c @@ -715,8 +715,7 @@ static int _parameter_list(C99 * c99) /* parameter-declaration */ static int _parameter_declaration(C99 * c99) - /* declaration-specifiers declarator - * declaration-specifiers [ abstract-declarator ] */ + /* declaration-specifiers [ (declarator | abstract-declarator) ] */ { int ret; @@ -728,9 +727,6 @@ static int _parameter_declaration(C99 * c99) ret |= _abstract_declarator(c99); else if(token_in_set(c99->token, c99set_declarator)) ret |= _declarator(c99); - else - ret |= _parse_error(c99, "Expected declarator" - " or abstract declarator"); return ret; }