From adb842b64b04a7d70e543bad7ae59807d549e85a Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Fri, 21 Apr 2017 16:40:58 -0700 Subject: [PATCH] altos/lpc: Add (void *) cast to fix alignment warning The -Wcast-align warning is generated when this cast is not present. Signed-off-by: Keith Packard --- src/lpc/ao_arch_funcs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lpc/ao_arch_funcs.h b/src/lpc/ao_arch_funcs.h index 5fc0f680..15106dea 100644 --- a/src/lpc/ao_arch_funcs.h +++ b/src/lpc/ao_arch_funcs.h @@ -109,7 +109,7 @@ ao_arch_memory_barrier() { static inline void ao_arch_init_stack(struct ao_task *task, void *start) { - uint32_t *sp = (uint32_t *) (task->stack + AO_STACK_SIZE); + uint32_t *sp = (uint32_t *) (void *) (task->stack + AO_STACK_SIZE); uint32_t a = (uint32_t) start; int i; -- 2.30.2