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:
Bradley Bolen 2019-05-17 14:57:48 -04:00 committed by Anas Nashif
commit c5665f2e8e

View file

@ -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