ref: ceb693378a667c55cac26425d2bf01f3fed96c74
parent: 6edad19c7b1d3bfda9f38073f950ce914895f63e
author: Roberto E. Vargas Caballero <[email protected]>
date: Wed Jul 9 05:55:26 EDT 2014
Remove non needed parameter of emiteframe
--- a/cc1/cc1.h
+++ b/cc1/cc1.h
@@ -204,7 +204,7 @@
};
extern void
- emitdcl(Symbol *), emitsframe(Symbol *), emiteframe(Symbol *),
+ emitdcl(Symbol *), emitsframe(Symbol *), emiteframe(void),
emitsym(Node *), emitunary(Node *),
emitbin(Node *), emitexp(Node *),
emitprint(Node *), emitlabel(Symbol *), emitjump(Symbol *, Node *),
--- a/cc1/code.c
+++ b/cc1/code.c
@@ -201,7 +201,7 @@
}
void
-emiteframe(Symbol *sym)
+emiteframe(void)
{
puts("}");
}
--- a/cc1/decl.c
+++ b/cc1/decl.c
@@ -469,7 +469,7 @@
emitfun(sym);
emitsframe(sym);
context(compound, NULL, NULL, NULL);
- emiteframe(sym); /* FIX: sym is not used */
+ emiteframe();
freesyms(NS_LABEL);
return;
}