[git commit] nptl: fix compiler warning due to missing prototype
Carmelo Amoroso
carmelo.amoroso at st.com
Mon Mar 26 07:58:03 UTC 2012
commit: http://git.uclibc.org/uClibc/commit/?id=77937735ab0b3cc45c02cce1a4e4b57acbb344cc
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master
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 at st.com>
---
libpthread/nptl/sysdeps/pthread/pt-longjmp.c | 2 ++
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 f161380..fb0628d 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)
{
More information about the uClibc-cvs
mailing list