x86: add CODE_UNREACHABLE to z_x86_cpu_init

For some reason, unrelated code change triggered compiler
warning about this function returns even though it is
marked nonreturn. So add CODE_UNREACHABLE to silence
the warning, possibly to catch any errors.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2023-11-16 11:39:14 -08:00 committed by Anas Nashif
parent 77c76fd7aa
commit 991523f462
1 changed files with 2 additions and 0 deletions

View File

@ -208,4 +208,6 @@ FUNC_NORETURN void z_x86_cpu_init(struct x86_cpuboot *cpuboot)
/* Enter kernel, never return */
cpuboot->ready++;
cpuboot->fn(cpuboot->arg);
CODE_UNREACHABLE; /* LCOV_EXCL_LINE */
}