[hackers] [scc] Remove unused parameter in initializer() || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Tue, 19 Jan 2016 10:55:47 +0100 (CET)

commit 245fc40cffc3b201f5cdf9e1b485fc7fa06e1463
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Tue Jan 19 10:24:35 2016 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Tue Jan 19 10:24:35 2016 +0100

    Remove unused parameter in initializer()

diff --git a/cc1/cc1.h b/cc1/cc1.h
index 0ffab7e..deb12f5 100644
--- a/cc1/cc1.h
+++ b/cc1/cc1.h
_AT_@ -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
index 33bd1e2..3ce524b 100644
--- a/cc1/decl.c
+++ b/cc1/decl.c
_AT_@ -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
index 3585935..b488620 100644
--- a/cc1/init.c
+++ b/cc1/init.c
_AT_@ -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;
Received on Tue Jan 19 2016 - 10:55:47 CET

This archive was generated by hypermail 2.3.0 : Tue Jan 19 2016 - 11:00:29 CET