Commit 1d30ae68 authored by Christian Würdig's avatar Christian Würdig
Browse files

added cast to stop moaning

parent 5991fbaa
......@@ -512,7 +512,7 @@ void init_arm_attributes(ir_node *node, int flags, const arm_register_req_t ** i
attr->n_projs = 0;
attr->default_proj_num = 0;
memset(attr->slots, 0, n_res * sizeof(attr->slots[0]));
memset((void *)attr->slots, 0, n_res * sizeof(attr->slots[0]));
}
static int arm_comp_condJmp(arm_attr_t *attr_a, arm_attr_t *attr_b) {
......
......@@ -397,7 +397,7 @@ void init_mips_attributes(ir_node *node, arch_irn_flags_t flags, const mips_regi
attr->n_res = n_res;
attr->in_req = in_reqs;
memset(attr->slots, 0, n_res * sizeof(attr->slots[0]));
memset((void *)attr->slots, 0, n_res * sizeof(attr->slots[0]));
}
/************************************************************************
......
......@@ -525,7 +525,7 @@ void init_ppc32_attributes(ir_node *node, int flags,
attr->offset_mode = ppc32_ao_Illegal;
attr->data.empty = NULL;
memset(attr->slots, 0, n_res * sizeof(attr->slots[0]));
memset((void *)attr->slots, 0, n_res * sizeof(attr->slots[0]));
}
......
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