From 9f98dfecb7e99eee329e1b0b7abd25c53bf392e4 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 23 Nov 2015 11:59:33 -0600 Subject: [PATCH] sim: Eliminate a warning --- arch/sim/src/up_createstack.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/sim/src/up_createstack.c b/arch/sim/src/up_createstack.c index 72e50921bee..3e998090c12 100644 --- a/arch/sim/src/up_createstack.c +++ b/arch/sim/src/up_createstack.c @@ -102,7 +102,7 @@ int up_create_stack(FAR struct tcb_s *tcb, size_t stack_size, uint8_t ttype) /* Move up to next even word boundary if necessary */ - size_t adj_stack_size = (stack_size + 3) & ~3; + size_t adj_stack_size = (stack_size + 3) & ~3; size_t adj_stack_words = adj_stack_size >> 2; /* Allocate the memory for the stack */ @@ -115,7 +115,7 @@ int up_create_stack(FAR struct tcb_s *tcb, size_t stack_size, uint8_t ttype) { /* This is the address of the last word in the allocation */ - size_t *adj_stack_ptr = &stack_alloc_ptr[adj_stack_words - 1]; + void *adj_stack_ptr = &stack_alloc_ptr[adj_stack_words - 1]; /* Save the values in the TCB */