Resolve redundant declaration warning when parsing the declaration list of k&r functions.
authorChristoph Mallon <christoph.mallon@gmx.de>
Wed, 26 Nov 2008 10:21:12 +0000 (10:21 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Wed, 26 Nov 2008 10:21:12 +0000 (10:21 +0000)
[r24010]

parser.c

index c35ae06..e800782 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -4977,6 +4977,7 @@ static entity_t *record_entity(entity_t *entity, const bool is_definition)
                                = entity->declaration.modifiers;
                        previous_entity->declaration.deprecated_string
                                = entity->declaration.deprecated_string;
+                       return previous_entity;
                }
                assert(entity->declaration.type != NULL);