From d85c61c5e7aaa735b2a0197485123e8d8e20c088 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Wed, 2 Nov 2005 21:21:15 +0000 Subject: add dummy loop to kill gcc warning, probably _exit should get attribute_noreturn --- libc/sysdeps/linux/common/_exit.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libc') 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); } -- cgit v1.2.3