ref: 0289c983456b286aea8fcf95c4a2e9950964317f
parent: 511baa28dc19e114dc4ddb08c865e68cbfc8a624
author: Roberto E. Vargas Caballero <[email protected]>
date: Sat Nov 15 08:22:56 EST 2014
Fix initializer warnings tp variable was not used, and it was not returning anything.
--- a/cc1/decl.c
+++ b/cc1/decl.c
@@ -234,8 +234,6 @@
static struct node *
initializer(Symbol *sym)
{
- register Type *tp = sym->type;
-
if (!sym->s.isdefined)
error("'%s' initialized and declared extern", sym->name);
@@ -247,6 +245,7 @@
expr();
} while (accept(','));
}
+ return NULL;
}
/* TODO: bitfields */