diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-11-18 04:49:32 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-11-18 04:49:32 -0500 |
commit | dd0bd6be9d72b87c78e43b4999367b9498892196 (patch) | |
tree | 1bd7f4ac7c31ea2472e693cd02fb39ef3943a0f5 /libpthread | |
parent | b4725d8e2cf04ffbead7721b5b43151245679262 (diff) |
nptl: fix gcc noreturn warning
Current builds show the warning:
CC libpthread/nptl/sysdeps/unix/sysv/linux/mq_notify.os
libpthread/nptl/sysdeps/unix/sysv/linux/mq_notify.c: In function 'helper_thread':
libpthread/nptl/sysdeps/unix/sysv/linux/mq_notify.c:142:3: warning:
function declared 'noreturn' has a 'return' statement [enabled by default]
Looking at glibc, it does not mark this function as noreturn. Testing
code size, gcc is smart enough to detect the while(1){} never actually
returns regardless of the attribute. So drop it to keep in sync with
glibc and to avoid the warning.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'libpthread')
-rw-r--r-- | libpthread/nptl/sysdeps/unix/sysv/linux/mq_notify.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/mq_notify.c b/libpthread/nptl/sysdeps/unix/sysv/linux/mq_notify.c index 91d40a3be..188040ee8 100644 --- a/libpthread/nptl/sysdeps/unix/sysv/linux/mq_notify.c +++ b/libpthread/nptl/sysdeps/unix/sysv/linux/mq_notify.c @@ -111,7 +111,7 @@ notification_function (void *arg) /* Helper thread. */ -static attribute_noreturn void * +static void * helper_thread (void *arg) { while (1) |