diff --git a/kernel/compiler_stack_protect.c b/kernel/compiler_stack_protect.c index 7ed30bb22b7..b7d12bb3ddf 100644 --- a/kernel/compiler_stack_protect.c +++ b/kernel/compiler_stack_protect.c @@ -36,6 +36,7 @@ void FUNC_NORETURN _StackCheckHandler(void) /* Stack canary error is a software fatal condition; treat it as such. */ _k_except_reason(_NANO_ERR_STACK_CHK_FAIL); + CODE_UNREACHABLE; } /* Global variable */