[hackers] [scc] [cc1] Remove not used variables || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Mon, 6 Mar 2017 14:24:40 +0100 (CET)

commit 3be0e6982d34c95a11842fc4b57895aab932a507
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Mon Mar 6 13:41:49 2017 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Mon Mar 6 13:41:49 2017 +0100

    [cc1] Remove not used variables

diff --git a/cc1/cpp.c b/cc1/cpp.c
index 79ddc01..05f28e1 100644
--- a/cc1/cpp.c
+++ b/cc1/cpp.c
_AT_@ -786,7 +786,6 @@ ppragmaln(void)
         static char file[FILENAME_MAX];
         static unsigned nline;
         char *s;
- int i;
 
         putchar('\n');
         if (strcmp(file, filenam)) {
diff --git a/cc1/fold.c b/cc1/fold.c
index 198e249..b2f2d67 100644
--- a/cc1/fold.c
+++ b/cc1/fold.c
_AT_@ -503,8 +503,8 @@ commutative(Node *np, Node *l, Node *r)
 static Node *
 identity(Node *np)
 {
- int iszeror, isoner, istruer;
- int iszerol, isonel, istruel;
+ int iszeror, isoner;
+ int iszerol, isonel;
         Node *lp = np->left, *rp = np->right;
 
         if (!rp)
_AT_@ -512,10 +512,8 @@ identity(Node *np)
 
         iszeror = cmpnode(rp, 0);
         isoner = cmpnode(rp, 1),
- istruer = !iszeror && rp->flags & NCONST;
         iszerol = cmpnode(lp, 0);
- isonel = cmpnode(lp, 1),
- istruel = !iszerol && lp->flags & NCONST;
+ isonel = cmpnode(lp, 1);
 
         switch (np->op) {
         case OOR:
diff --git a/cc1/main.c b/cc1/main.c
index d84f682..417eb0f 100644
--- a/cc1/main.c
+++ b/cc1/main.c
_AT_@ -44,7 +44,6 @@ usage(void)
 int
 main(int argc, char *argv[])
 {
- char *cp;
         int i;
 
         ilex();
Received on Mon Mar 06 2017 - 14:24:40 CET

This archive was generated by hypermail 2.3.0 : Mon Mar 06 2017 - 14:36:40 CET