summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-11-02 21:21:15 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-11-02 21:21:15 +0000
commitd85c61c5e7aaa735b2a0197485123e8d8e20c088 (patch)
treeebebc6761ea7723f6c06eccb2137afb263781ae9 /libc/sysdeps/linux/common
parent08dfb1d906a0230057e617b86eb034008b4bba4a (diff)
add dummy loop to kill gcc warning, probably _exit should get attribute_noreturn
Diffstat (limited to 'libc/sysdeps/linux/common')
-rw-r--r--libc/sysdeps/linux/common/_exit.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/_exit.c b/libc/sysdeps/linux/common/_exit.c
index 2a1b2c941..cd03989af 100644
--- a/libc/sysdeps/linux/common/_exit.c
+++ b/libc/sysdeps/linux/common/_exit.c
@@ -34,6 +34,8 @@ static inline _syscall1(void, __syscall_exit, int, status);
void _exit(int status)
{
- INLINE_SYSCALL(exit, 1, status);
+ /* The loop is added only to keep gcc happy. */
+ while(1)
+ INLINE_SYSCALL(exit, 1, status);
}