scc

Simple C99 Compiler
Log | Files | Refs | README | LICENSE

commit ffbd94a13592c386a30ba1c8e09364c7c003cdb2
parent f9656a52f74f06992b576510bb52ed4b6f66b787
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri,  4 Sep 2015 20:15:15 +0200

Remove unused parameter ini chklvalue()

Diffstat:
cc1/expr.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/cc1/expr.c b/cc1/expr.c @@ -86,7 +86,7 @@ typeconv(Node **p1, Node **p2) } static void -chklvalue(Node *np, Type *tp) +chklvalue(Node *np) { if (!np->lvalue) error("lvalue required in operation"); @@ -441,7 +441,7 @@ incdec(Node *np, char op) Type *tp = np->type; Node *inc; - chklvalue(np, np->type); + chklvalue(np); switch (BTYPE(np)) { case PTR: @@ -911,7 +911,7 @@ assign(void) case OR_EQ: op = OA_OR; fun = integerop; break; default: return np; } - chklvalue(np, np->type); + chklvalue(np); next(); np = (fun)(op, np, assign()); }