diff options
| author | Meco Man <[email protected]> | 2021-02-13 13:23:18 +0800 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2021-02-13 13:23:18 +0800 |
| commit | 23d4c200c99952a91c470928f9db8964c203fa6d (patch) | |
| tree | b59818233bd51592615a88ed0725cdf625c0dacb | |
| parent | b89b3958bc97b2df5eeca301f8a463cccab88fbc (diff) | |
add noreturn
| -rw-r--r-- | components/libc/compilers/armlibc/stubs.c | 2 | ||||
| -rw-r--r-- | components/libc/compilers/newlib/syscalls.c | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/components/libc/compilers/armlibc/stubs.c b/components/libc/compilers/armlibc/stubs.c index 600100c554..a4879be0c6 100644 --- a/components/libc/compilers/armlibc/stubs.c +++ b/components/libc/compilers/armlibc/stubs.c @@ -270,6 +270,8 @@ RT_WEAK void _sys_exit(int return_code) rt_thread_suspend(self); rt_schedule(); } + + while(1); /* noreturn */ } /** diff --git a/components/libc/compilers/newlib/syscalls.c b/components/libc/compilers/newlib/syscalls.c index 5ce2df284d..a0a081bd26 100644 --- a/components/libc/compilers/newlib/syscalls.c +++ b/components/libc/compilers/newlib/syscalls.c @@ -303,6 +303,8 @@ exit (int status) rt_thread_suspend(self); rt_schedule(); } + + while(1); /* noreturn */ } void @@ -334,6 +336,8 @@ void abort(void) rt_thread_suspend(self); rt_schedule(); } + + while(1); /* noreturn */ } uid_t getuid(void) |
