shithub: scc

Download patch

ref: 3aab523c3622c93b4ebcc34a9098ff9634fc4ef2
parent: e4f0fe727ff7969419f79b778d272a6a658ce3a2
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Mon Mar 6 10:50:50 EST 2017

[cc1] Remove not used variable in funbody()

--- a/cc1/decl.c
+++ b/cc1/decl.c
@@ -465,7 +465,6 @@
 static int
 funbody(Symbol *sym, Symbol *pars[])
 {
-	Symbol *par;
 	Type *tp;
 
 	if (!sym)
@@ -492,7 +491,7 @@
 	curfun = sym;
 	if (sym->type->prop & TK_R) {
 		while (yytoken != '{') {
-			par = dodcl(REP, parameter, NS_IDEN, sym->type);
+			dodcl(REP, parameter, NS_IDEN, sym->type);
 			expect(';');
 		}
 	}