From 55825dbe73a486f831a8077566451bbb9089a9a9 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Thu, 5 Apr 2007 13:46:25 +0000 Subject: [PATCH] removed warnings [r12660] --- ir/be/beabi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ir/be/beabi.c b/ir/be/beabi.c index 2eadaa423..e15a137bb 100644 --- a/ir/be/beabi.c +++ b/ir/be/beabi.c @@ -1918,7 +1918,7 @@ void fix_call_state_inputs(be_abi_irg_t *env) { const arch_isa_t *isa = env->isa; int i, n, n_states; - const arch_register_t **stateregs = NEW_ARR_F(const arch_register_t*, 0); + arch_register_t **stateregs = NEW_ARR_F(arch_register_t*, 0); /* Collect caller save registers */ n = arch_isa_get_n_reg_class(isa); @@ -1928,7 +1928,7 @@ void fix_call_state_inputs(be_abi_irg_t *env) for(j = 0; j < cls->n_regs; ++j) { const arch_register_t *reg = arch_register_for_index(cls, j); if(arch_register_type_is(reg, state)) { - ARR_APP1(arch_register_t*, stateregs, reg); + ARR_APP1(arch_register_t*, stateregs, (arch_register_t *)reg); } } } -- 2.20.1