diff options
author | Keith Packard <keithp@keithp.com> | 2017-04-21 16:40:58 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2017-04-21 16:40:58 -0700 |
commit | adb842b64b04a7d70e543bad7ae59807d549e85a (patch) | |
tree | c3bc8485178a3a50b27f0472af37eda6347fff0d /src/lpc/ao_arch_funcs.h | |
parent | 51ce352d179835ca08e4cf9326e9e77d6b972fb7 (diff) |
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 <keithp@keithp.com>
Diffstat (limited to 'src/lpc/ao_arch_funcs.h')
-rw-r--r-- | src/lpc/ao_arch_funcs.h | 2 |
1 files changed, 1 insertions, 1 deletions
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; |