From d00b3c79c845cab8d8aac016d28071bdd9432ec2 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sat, 24 Mar 2012 22:30:28 +0000 Subject: Squash aliasing warnings svn path=/trunk/netsurf/; revision=13640 --- render/box_construct.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'render/box_construct.c') diff --git a/render/box_construct.c b/render/box_construct.c index 7176350eb..da35312ce 100644 --- a/render/box_construct.c +++ b/render/box_construct.c @@ -229,7 +229,7 @@ static inline struct box *box_for_node(dom_node *n) struct box *box = NULL; dom_exception err; - err = dom_node_get_user_data(n, kstr_box_key, &box); + err = dom_node_get_user_data(n, kstr_box_key, (void *) &box); if (err != DOM_NO_ERR) return NULL; @@ -885,7 +885,8 @@ bool box_construct_element(struct box_construct_ctx *ctx, } /* Attach box to DOM node */ - err = dom_node_set_user_data(ctx->n, kstr_box_key, box, NULL, &old_box); + err = dom_node_set_user_data(ctx->n, kstr_box_key, box, NULL, + (void *) &old_box); if (err != DOM_NO_ERR) return false; @@ -2922,7 +2923,7 @@ bool box_embed(BOX_SPECIAL_PARAMS) dom_attr *attr; dom_string *name, *value; - err = dom_namednodemap_item(attrs, idx, &attr); + err = dom_namednodemap_item(attrs, idx, (void *) &attr); if (err != DOM_NO_ERR) { dom_namednodemap_unref(attrs); return false; -- cgit v1.2.3