提交 23d4c200 编写于 作者: mysterywolf's avatar mysterywolf

add noreturn

上级 b89b3958
...@@ -270,6 +270,8 @@ RT_WEAK void _sys_exit(int return_code) ...@@ -270,6 +270,8 @@ RT_WEAK void _sys_exit(int return_code)
rt_thread_suspend(self); rt_thread_suspend(self);
rt_schedule(); rt_schedule();
} }
while(1); /* noreturn */
} }
/** /**
......
...@@ -303,6 +303,8 @@ exit (int status) ...@@ -303,6 +303,8 @@ exit (int status)
rt_thread_suspend(self); rt_thread_suspend(self);
rt_schedule(); rt_schedule();
} }
while(1); /* noreturn */
} }
void void
...@@ -334,6 +336,8 @@ void abort(void) ...@@ -334,6 +336,8 @@ void abort(void)
rt_thread_suspend(self); rt_thread_suspend(self);
rt_schedule(); rt_schedule();
} }
while(1); /* noreturn */
} }
uid_t getuid(void) uid_t getuid(void)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册