From: Michael Beck Date: Wed, 6 Jun 2007 12:11:31 +0000 (+0000) Subject: added cast to suppress warning X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=f3c8b2366da68cbfa125f42e716fe68c688e5bc4;p=libfirm added cast to suppress warning [r14364] --- diff --git a/ir/be/ppc32/ppc32_new_nodes.c b/ir/be/ppc32/ppc32_new_nodes.c index d7ec1e81a..c816b065e 100644 --- a/ir/be/ppc32/ppc32_new_nodes.c +++ b/ir/be/ppc32/ppc32_new_nodes.c @@ -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(attr->slots, 0, n_res * sizeof(attr->slots[0])); + memset((arch_register_t **)attr->slots, 0, n_res * sizeof(attr->slots[0])); }