commit 245fc40cffc3b201f5cdf9e1b485fc7fa06e1463
parent 8c00d7841c469a78680766b398ea4766b1ac0a09
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Tue, 19 Jan 2016 10:24:35 +0100
Remove unused parameter in initializer()
Diffstat:
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/cc1/cc1.h b/cc1/cc1.h
@@ -384,7 +384,7 @@ extern int negop(int op);
extern bool cmpnode(Node *np, TUINT val);
/* init.c */
-extern void initializer(Symbol *sym, Type *tp, int nelem);
+extern void initializer(Symbol *sym, Type *tp);
/* cpp.c */
extern void icpp(void);
diff --git a/cc1/decl.c b/cc1/decl.c
@@ -792,7 +792,7 @@ identifier(struct decl *dcl)
if (sym->token == IDEN && sym->type->op != FTN)
emit(ODECL, sym);
if (accept('='))
- initializer(sym, sym->type, -1);
+ initializer(sym, sym->type);
if (!(sym->flags & (ISGLOBAL|ISEXTERN)) && tp->op != FTN)
sym->flags |= ISDEFINED;
return sym;
diff --git a/cc1/init.c b/cc1/init.c
@@ -235,7 +235,7 @@ initlist(Type *tp)
}
void
-initializer(Symbol *sym, Type *tp, int nelem)
+initializer(Symbol *sym, Type *tp)
{
Node *np;
int flags = sym->flags;