add noreturn

This commit is contained in:
Meco Man 2021-02-13 13:23:18 +08:00
parent b89b3958bc
commit 23d4c200c9
2 changed files with 6 additions and 0 deletions

View File

@ -270,6 +270,8 @@ RT_WEAK void _sys_exit(int return_code)
rt_thread_suspend(self);
rt_schedule();
}
while(1); /* noreturn */
}
/**

View File

@ -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)