OSDN Git Service

nptl: fix compiler warning due to missing prototype
authorCarmelo Amoroso <carmelo.amoroso@st.com>
Wed, 14 Mar 2012 15:26:13 +0000 (16:26 +0100)
committerCarmelo Amoroso <carmelo.amoroso@st.com>
Mon, 26 Mar 2012 07:58:03 +0000 (09:58 +0200)
libpthread/nptl/sysdeps/pthread/pt-longjmp.c: In function 'longjmp':
libpthread/nptl/sysdeps/pthread/pt-longjmp.c:27:3: warning: implicit declaration of function '__libc_longjmp' [-Wimplicit-function-declaration]
libpthread/nptl/sysdeps/pthread/pt-longjmp.c:28:1: warning: 'noreturn' function does return [enabled by default]

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
libpthread/nptl/sysdeps/pthread/pt-longjmp.c

index f161380..fb0628d 100644 (file)
@@ -21,6 +21,8 @@
 #include <stdlib.h>
 #include "pthreadP.h"
 
+extern __typeof(longjmp) __libc_longjmp attribute_noreturn;
+
 void
 longjmp (jmp_buf env, int val)
 {