scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit 3be0e6982d34c95a11842fc4b57895aab932a507
parent c157d03141d8f99ff753af8b72b6dff6cf2ac4bc
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Mon,  6 Mar 2017 13:41:49 +0100

[cc1] Remove not used variables

Diffstat:
Mcc1/cpp.c | 1-
Mcc1/fold.c | 8+++-----
Mcc1/main.c | 1-
3 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/cc1/cpp.c b/cc1/cpp.c @@ -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 @@ -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) @@ -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 @@ -44,7 +44,6 @@ usage(void) int main(int argc, char *argv[]) { - char *cp; int i; ilex();