commit a2edadd2f36ac7cd89027252bdc63f459112ec1a
parent befd4b3ef6de5f64ba923e2b0b86e46609e7e1fd
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Fri, 14 Aug 2015 17:11:50 +0200
Remove wrong test in initializer
Diffstat:
1 file changed, 0 insertions(+), 3 deletions(-)
diff --git a/cc1/decl.c b/cc1/decl.c
@@ -349,9 +349,6 @@ invalid_type:
static struct node *
initializer(Symbol *sym)
{
- if (!(sym->flags & ISEXTERN))
- error("'%s' initialized and declared extern", sym->name);
-
if (accept('{')) {
initializer(sym);
expect('}');