* This fixes the "'noreturn' function returns" warning in exit().

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34293 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2009-11-26 16:59:46 +00:00
parent 52d6f78a9a
commit 3f67d04bc4

View File

@ -51,7 +51,10 @@ struct user_disk_system_info;
// * The arguments of the functions must be named to be processed properly.
#ifdef GEN_SYSCALL_INFOS_PROCESSING
#pragma syscalls begin
# define __NO_RETURN
# pragma syscalls begin
#else
# define __NO_RETURN __attribute__((noreturn))
#endif
extern int _kern_is_computer_on(void);
@ -120,7 +123,7 @@ extern thread_id _kern_load_image(const char* const* flatArgs,
size_t flatArgsSize, int32 argCount, int32 envCount,
int32 priority, uint32 flags, port_id errorPort,
uint32 errorToken);
extern void _kern_exit_team(status_t returnValue);
extern void __NO_RETURN _kern_exit_team(status_t returnValue);
extern status_t _kern_kill_team(team_id team);
extern team_id _kern_get_current_team();
extern status_t _kern_wait_for_team(team_id team, status_t *_returnCode);
@ -580,6 +583,8 @@ extern status_t _kern_stop_watching_disks(port_id port, int32 token);
#pragma syscalls end
#endif
#undef __NO_RETURN
#ifdef __cplusplus
}
#endif