From 0a0e7b5bd74ce5c2aa9700a395fab489d30fc9b9 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Thu, 23 Mar 2017 17:51:19 +0000 Subject: Duktape: Suppress warnings about increasing alignment of pointer type. --- content/handlers/javascript/duktape/duktape.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'content/handlers/javascript') diff --git a/content/handlers/javascript/duktape/duktape.c b/content/handlers/javascript/duktape/duktape.c index c5c3dc9a2..2ab83656b 100644 --- a/content/handlers/javascript/duktape/duktape.c +++ b/content/handlers/javascript/duktape/duktape.c @@ -75624,7 +75624,7 @@ void duk_js_init_activation_environment_records_delayed(duk_hthread *thr, env = duk_create_activation_environment_record(thr, func, act->idx_bottom); DUK_ASSERT(env != NULL); - act = (duk_activation *) ((duk_uint8_t *) thr->callstack + act_off); + act = (duk_activation *) (void *) ((duk_uint8_t *) thr->callstack + act_off); DUK_DDD(DUK_DDDPRINT("created delayed fresh env: %!ipO", (duk_heaphdr *) env)); #if defined(DUK_USE_DEBUG_LEVEL) && (DUK_USE_DEBUG_LEVEL >= 2) @@ -76892,7 +76892,7 @@ duk_bool_t duk_js_declvar_activation(duk_hthread *thr, if (!act->var_env) { DUK_ASSERT(act->lex_env == NULL); duk_js_init_activation_environment_records_delayed(thr, act); - act = (duk_activation *) ((duk_uint8_t *) thr->callstack + act_off); + act = (duk_activation *) (void *) ((duk_uint8_t *) thr->callstack + act_off); } DUK_ASSERT(act->lex_env != NULL); DUK_ASSERT(act->var_env != NULL); -- cgit v1.2.3