Pārlūkot izejas kodu

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>
Mike Frysinger 11 gadi atpakaļ
vecāks
revīzija
dd0bd6be9d
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      libpthread/nptl/sysdeps/unix/sysv/linux/mq_notify.c

+ 1 - 1
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)