From cfaac6921bb0e334e8448d3d739eef4154710889 Mon Sep 17 00:00:00 2001 From: Nguyen Anh Quynh Date: Mon, 1 Feb 2016 12:05:46 +0800 Subject: [PATCH] c89 --- qemu/unicorn_common.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qemu/unicorn_common.h b/qemu/unicorn_common.h index a9fb5176..ca095b8b 100644 --- a/qemu/unicorn_common.h +++ b/qemu/unicorn_common.h @@ -36,6 +36,9 @@ static void release_common(void *t) TCGContext *s = (TCGContext *)t; struct uc_struct* uc = s->uc; CPUState *cpu; +#if TCG_TARGET_REG_BITS == 32 + int i; +#endif // Clean TCG. TCGOpDef* def = &s->tcg_op_defs[0]; @@ -83,7 +86,7 @@ static void release_common(void *t) free(uc->qemu_thread_data); #if TCG_TARGET_REG_BITS == 32 - for(int i = 0; i < s->nb_globals; i++) { + for(i = 0; i < s->nb_globals; i++) { TCGTemp *ts = &s->temps[i]; if (ts->base_type == TCG_TYPE_I64) { if (ts->name && ((strcmp(ts->name+(strlen(ts->name)-2), "_0") == 0) ||