[hackers] [scc] Remove unused parameter ini chklvalue() || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Fri, 4 Sep 2015 20:22:39 +0200 (CEST)

commit ffbd94a13592c386a30ba1c8e09364c7c003cdb2
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Fri Sep 4 20:15:15 2015 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Fri Sep 4 20:15:15 2015 +0200

    Remove unused parameter ini chklvalue()

diff --git a/cc1/expr.c b/cc1/expr.c
index a476e9b..a15468a 100644
--- a/cc1/expr.c
+++ b/cc1/expr.c
_AT_@ -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");
_AT_@ -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:
_AT_@ -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());
         }
Received on Fri Sep 04 2015 - 20:22:39 CEST

This archive was generated by hypermail 2.3.0 : Fri Sep 04 2015 - 20:24:27 CEST