Browse Source

nptl: fix compiler warning due to missing prototype

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>
Carmelo Amoroso 12 years ago
parent
commit
77937735ab
1 changed files with 2 additions and 0 deletions
  1. 2 0
      libpthread/nptl/sysdeps/pthread/pt-longjmp.c

+ 2 - 0
libpthread/nptl/sysdeps/pthread/pt-longjmp.c

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