From: Christoph Mallon Date: Thu, 16 Jun 2011 14:46:16 +0000 (+0200) Subject: Remove unnecessary error message. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=06d06afe68e92d6c793273cb97e6e5f041c3ada4;p=cparser Remove unnecessary error message. If this case is entered, there was an error message that the declarator is abstract before. --- 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);