Commit 95d3605c authored by Christoph Mallon's avatar Christoph Mallon
Browse files

Fix warning, remove unnecessary casts.

[r14658]
parent ad7bf85c
......@@ -375,8 +375,8 @@ void init_TEMPLATE_attributes(ir_node *node, arch_irn_flags_t flags,
attr->out_req = out_reqs;
attr->in_req = in_reqs;
attr->slots = NEW_ARR_D(arch_register_t*, obst, n_res);
memset((arch_register_t **)attr->slots, 0, n_res * sizeof(attr->slots[0]));
attr->slots = NEW_ARR_D(const arch_register_t*, obst, n_res);
memset(attr->slots, 0, n_res * sizeof(attr->slots[0]));
}
/***************************************************************************************
......
......@@ -530,7 +530,7 @@ arm_shift_modifier get_arm_shift_modifier(const ir_node *node) {
}
/* Set the ARM machine node attributes to default values. */
void init_arm_attributes(ir_node *node, int flags, const arch_register_req_t ** in_reqs,
static void init_arm_attributes(ir_node *node, int flags, const arch_register_req_t ** in_reqs,
const arch_register_req_t ** out_reqs, const be_execution_unit_t ***execution_units,
int n_res, unsigned latency) {
ir_graph *irg = get_irn_irg(node);
......@@ -547,7 +547,7 @@ void init_arm_attributes(ir_node *node, int flags, const arch_register_req_t **
memset(attr->out_flags, 0, n_res * sizeof(attr->out_flags[0]));
attr->slots = NEW_ARR_D(const arch_register_t*, obst, n_res);
memset((arch_register_t **)attr->slots, 0, n_res * sizeof(attr->slots[0]));
memset(attr->slots, 0, n_res * sizeof(attr->slots[0]));
}
/***************************************************************************************
......
......@@ -1185,7 +1185,7 @@ void init_ia32_attributes(ir_node *node, arch_irn_flags_t flags,
memset(attr->out_flags, 0, n_res * sizeof(attr->out_flags[0]));
attr->slots = NEW_ARR_D(const arch_register_t*, obst, n_res);
memset(( arch_register_t **)attr->slots, 0, n_res * sizeof(attr->slots[0]));
memset(attr->slots, 0, n_res * sizeof(attr->slots[0]));
}
void
......
......@@ -380,7 +380,7 @@ void init_mips_attributes(ir_node *node, arch_irn_flags_t flags,
attr->in_req = in_reqs;
attr->slots = NEW_ARR_D(const arch_register_t*, obst, n_res);
memset((arch_register_t **)attr->slots, 0, n_res * sizeof(attr->slots[0]));
memset(attr->slots, 0, n_res * sizeof(attr->slots[0]));
}
static
......
......@@ -508,7 +508,7 @@ void init_ppc32_attributes(ir_node *node, int flags,
attr->data.empty = NULL;
attr->slots = NEW_ARR_D(const arch_register_t*, obst, n_res);
memset((arch_register_t **)attr->slots, 0, n_res * sizeof(attr->slots[0]));
memset(attr->slots, 0, n_res * sizeof(attr->slots[0]));
}
......
Supports Markdown
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