Remove unnecessary error message.
authorChristoph Mallon <christoph.mallon@gmx.de>
Thu, 16 Jun 2011 14:46:16 +0000 (16:46 +0200)
committerChristoph Mallon <christoph.mallon@gmx.de>
Fri, 17 Jun 2011 04:42:11 +0000 (06:42 +0200)
If this case is entered, there was an error message that the declarator is abstract before.

parser.c

index 231a0a2..04738b5 100644 (file)
--- 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);