summaryrefslogtreecommitdiff
path: root/kern/thread.c
diff options
context:
space:
mode:
authorMarin Ramesa <mpr@hi.t-com.hr>2013-12-16 23:55:18 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-12-17 19:05:05 +0100
commit13a3d2472961902e809bb90fc5adc6b7696f7db5 (patch)
tree4557759cdc799e9774442e82cee9bd39eafaf514 /kern/thread.c
parent5a5ec187ae6cb2afc874ad9ef118ef634e9164c8 (diff)
Mark functions that don't return with attribute noreturn
Diffstat (limited to 'kern/thread.c')
-rw-r--r--kern/thread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kern/thread.c b/kern/thread.c
index 1414078a..ddb06d52 100644
--- a/kern/thread.c
+++ b/kern/thread.c
@@ -1123,7 +1123,7 @@ kern_return_t thread_halt(
}
}
-void walking_zombie(void)
+void __attribute__((noreturn)) walking_zombie(void)
{
panic("the zombie walks!");
}
@@ -1693,7 +1693,7 @@ thread_t kernel_thread(
* This kernel thread runs forever looking for threads to destroy
* (when they request that they be destroyed, of course).
*/
-void reaper_thread_continue(void)
+void __attribute__((noreturn)) reaper_thread_continue(void)
{
for (;;) {
thread_t thread;