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:
parent
194340b1a2
commit
1c2f3c4cef
1 changed files with 1 additions and 0 deletions
|
@ -118,6 +118,7 @@ void exit(int return_code)
|
|||
LOG_ERR("exit(%d)", return_code);
|
||||
k_panic();
|
||||
#endif
|
||||
CODE_UNREACHABLE;
|
||||
}
|
||||
|
||||
#ifdef XT_SIMULATOR
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue