summaryrefslogtreecommitdiff
path: root/components/libc
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2021-02-13 13:23:18 +0800
committerMeco Man <[email protected]>2021-02-13 13:23:18 +0800
commit23d4c200c99952a91c470928f9db8964c203fa6d (patch)
treeb59818233bd51592615a88ed0725cdf625c0dacb /components/libc
parentb89b3958bc97b2df5eeca301f8a463cccab88fbc (diff)
add noreturn
Diffstat (limited to 'components/libc')
-rw-r--r--components/libc/compilers/armlibc/stubs.c2
-rw-r--r--components/libc/compilers/newlib/syscalls.c4
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)