arch/xtensa: Mark 'exit' with CODE_UNREACHABLE

gcc in 'hosted' mode checks the implementation of 'exit' to make sure it
doesn't return.

Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
Keith Packard 2022-04-27 17:40:33 -07:00 committed by Stephanos Ioannidis
commit 1c2f3c4cef

View file

@ -118,6 +118,7 @@ void exit(int return_code)
LOG_ERR("exit(%d)", return_code);
k_panic();
#endif
CODE_UNREACHABLE;
}
#ifdef XT_SIMULATOR