From 06d06afe68e92d6c793273cb97e6e5f041c3ada4 Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Thu, 16 Jun 2011 16:46:16 +0200 Subject: [PATCH] Remove unnecessary error message. If this case is entered, there was an error message that the declarator is abstract before. --- parser.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/parser.c b/parser.c index 231a0a2..04738b5 100644 --- a/parser.c +++ b/parser.c @@ -4598,10 +4598,8 @@ end_error: static entity_t *finished_kr_declaration(entity_t *entity, bool is_definition) { symbol_t *symbol = entity->base.symbol; - if (symbol == NULL) { - errorf(HERE, "anonymous declaration not valid as function parameter"); + if (symbol == NULL) return entity; - } assert(entity->base.namespc == NAMESPACE_NORMAL); entity_t *previous_entity = get_entity(symbol, NAMESPACE_NORMAL); -- 2.20.1