Commit 8c499c9c authored by Etienne Renault's avatar Etienne Renault

silent gcc unused variable

* src/emit.c, tests/sample.c.ref: here.
parent 111a5785
...@@ -359,7 +359,8 @@ void emit_label_func () ...@@ -359,7 +359,8 @@ void emit_label_func ()
output ("\t}\n\n"); output ("\t}\n\n");
output ("\tarity = (left != NULL) + (right != NULL);\n"); output ("\tarity = (left != NULL) + (right != NULL);\n");
output ("\tg_assert (arity == mono_burg_arity [MBTREE_OP(tree)]);\n\n"); output ("\tg_assert (arity == mono_burg_arity [MBTREE_OP(tree)]);\n");
output ("\t(void)arity;\n\n");
if (!dag_mode) if (!dag_mode)
output ("\tp = MBALLOC_STATE;\n"); output ("\tp = MBALLOC_STATE;\n");
......
...@@ -252,6 +252,7 @@ mono_burg_label_priv (MBTREE_TYPE *tree, MBCOST_DATA *data) { ...@@ -252,6 +252,7 @@ mono_burg_label_priv (MBTREE_TYPE *tree, MBCOST_DATA *data) {
arity = (left != NULL) + (right != NULL); arity = (left != NULL) + (right != NULL);
g_assert (arity == mono_burg_arity [MBTREE_OP(tree)]); g_assert (arity == mono_burg_arity [MBTREE_OP(tree)]);
(void)arity;
p = MBALLOC_STATE; p = MBALLOC_STATE;
memset (p, 0, sizeof (MBState)); memset (p, 0, sizeof (MBState));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment