arch: arc: Fix checks of CONFIG_STACK_POINTER_RANDOM
The compiler generates errors of the form error: "CONFIG_STACK_POINTER_RANDOM" is not defined, evaluates to 0 [-Werror=undef] when -Wundef is used and the config option was turned off. Change check to if defined(). Signed-off-by: Bradley Bolen <bbolen@lexmark.com>
This commit is contained in:
parent
d2ef19bd25
commit
c5665f2e8e
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ void z_new_thread(struct k_thread *thread, k_thread_stack_t *stack,
|
|||
#endif
|
||||
stackEnd = pStackMem + stackAdjSize;
|
||||
|
||||
#if CONFIG_STACK_POINTER_RANDOM
|
||||
#ifdef CONFIG_STACK_POINTER_RANDOM
|
||||
offset = stackAdjSize - stackSize;
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue