summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarmelo Amoroso <carmelo.amoroso@st.com>2012-03-14 16:26:13 +0100
committerCarmelo Amoroso <carmelo.amoroso@st.com>2012-03-26 09:58:03 +0200
commit77937735ab0b3cc45c02cce1a4e4b57acbb344cc (patch)
tree8e87341907952413061c30c51a19aa74ad160266
parent089de40d5727a2a5478767e3b9c1a43bc46b7e46 (diff)
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>
-rw-r--r--libpthread/nptl/sysdeps/pthread/pt-longjmp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libpthread/nptl/sysdeps/pthread/pt-longjmp.c b/libpthread/nptl/sysdeps/pthread/pt-longjmp.c
index f161380ea..fb0628d22 100644
--- a/libpthread/nptl/sysdeps/pthread/pt-longjmp.c
+++ b/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)
{