ref: b00898d90c39c522aa074b10448d6c72c4176683
parent: b180e15d2a5fb72ee3aa45a5cf6a3e27a016aed0
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Fri Mar 20 07:51:19 EDT 2015
Remove unneeded variable in generate()
--- a/cc2/cgen.c
+++ b/cc2/cgen.c
@@ -411,7 +411,7 @@
generate(void)
{
extern char odebug;
- uint8_t i, size = curfun->u.f.locals;
+ uint8_t size = curfun->u.f.locals;
char frame = size != 0 || odebug;
if (frame) {
@@ -422,7 +422,7 @@
code(ADD, ®s[HL], ®s[SP]);
code(MOV, ®s[SP], ®s[HL]);
} else {
- for (i = size; i != 0; i-= 2)
+ for (; size != 0; size-= 2)
code(PUSH, NULL, ®s[HL]);
}
}