mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-26 01:07:21 +00:00
add noreturn
This commit is contained in:
@@ -270,6 +270,8 @@ RT_WEAK void _sys_exit(int return_code)
|
||||
rt_thread_suspend(self);
|
||||
rt_schedule();
|
||||
}
|
||||
|
||||
while(1); /* noreturn */
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user