shithub: scc

Download patch

ref: 1529db2ce3173f824acd8e7fd895c2543262be17
parent: 95fc266ff25c057139b8c336e309d183b76cf751
author: Roberto E. Vargas Caballero <[email protected]>
date: Thu May 15 10:29:06 EDT 2014

Remove non used variables

--- a/cc1/code.c
+++ b/cc1/code.c
@@ -132,7 +132,7 @@
 emitunary(Node *np)
 {
 	Node *child;
-	char op, letter;
+	char letter;
 
 	letter = np->type->letter;
 	child = np->childs[0];
--- a/cc1/decl.c
+++ b/cc1/decl.c
@@ -65,7 +65,6 @@
 directdcl(struct dcldata *dp, int8_t flags)
 {
 	register Symbol *sym;
-	char *err;
 
 	if (accept('(')) {
 		dp = declarator0(dp, flags);
--- a/cc1/expr.c
+++ b/cc1/expr.c
@@ -156,7 +156,6 @@
 {
 	Type *tp;
 	Node *size;
-	char *err;
 
 	tp = np1->utype;
 	size = sizeofcode(tp->type);
@@ -504,7 +503,6 @@
 	register Node *(*fun)(char, Node *);
 	register char op;
 	Type *tp;
-	char *err;
 
 	switch (yytoken) {
 	case SIZEOF: