Xtensa port: Removed warnings related to function _NanoFatalErrorHandler.

This function needs to be decalred in a file included by _thread_entry.
It also needs to have exit function declared as not returning.

Change-Id: I2a01e7408cf70266351ae5089f45b5d9d009fabe
Signed-off-by: Mazen NEIFER <mazen@nestwave.com>
This commit is contained in:
Mazen NEIFER 2017-01-30 22:05:17 +01:00 committed by Andrew Boie
commit 93e53da56a
2 changed files with 6 additions and 2 deletions

View file

@ -16,7 +16,7 @@ const NANO_ESF _default_esf = {
0xdeaddead, /* pc */ 0xdeaddead, /* pc */
}; };
extern void exit(int exit_code); FUNC_NORETURN void exit(int exit_code);
/** /**
* *
@ -36,7 +36,8 @@ extern void exit(int exit_code);
* *
* @return This function does not return. * @return This function does not return.
*/ */
void _NanoFatalErrorHandler(unsigned int reason, const NANO_ESF *pEsf) FUNC_NORETURN void _NanoFatalErrorHandler(unsigned int reason,
const NANO_ESF *pEsf)
{ {
switch (reason) { switch (reason) {
case _NANO_ERR_INVALID_TASK_EXIT: case _NANO_ERR_INVALID_TASK_EXIT:

View file

@ -78,6 +78,9 @@ static inline void _IntLibInit(void)
{ {
} }
FUNC_NORETURN void _NanoFatalErrorHandler(unsigned int reason,
const NANO_ESF *pEsf);
#include <stddef.h> /* For size_t */ #include <stddef.h> /* For size_t */
#ifdef __cplusplus #ifdef __cplusplus