* 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:
@@ -51,7 +51,10 @@ struct user_disk_system_info;
|
|||||||
// * The arguments of the functions must be named to be processed properly.
|
// * The arguments of the functions must be named to be processed properly.
|
||||||
|
|
||||||
#ifdef GEN_SYSCALL_INFOS_PROCESSING
|
#ifdef GEN_SYSCALL_INFOS_PROCESSING
|
||||||
#pragma syscalls begin
|
# define __NO_RETURN
|
||||||
|
# pragma syscalls begin
|
||||||
|
#else
|
||||||
|
# define __NO_RETURN __attribute__((noreturn))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern int _kern_is_computer_on(void);
|
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,
|
size_t flatArgsSize, int32 argCount, int32 envCount,
|
||||||
int32 priority, uint32 flags, port_id errorPort,
|
int32 priority, uint32 flags, port_id errorPort,
|
||||||
uint32 errorToken);
|
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 status_t _kern_kill_team(team_id team);
|
||||||
extern team_id _kern_get_current_team();
|
extern team_id _kern_get_current_team();
|
||||||
extern status_t _kern_wait_for_team(team_id team, status_t *_returnCode);
|
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
|
#pragma syscalls end
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#undef __NO_RETURN
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user