[PATCH 3/3] nptl: fix compiler warning due to missing prototype

Carmelo AMOROSO carmelo.amoroso at st.com
Mon Mar 26 08:02:24 UTC 2012


On 14/03/2012 16.41, Carmelo AMOROSO wrote:
> 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)
>  {

Applied.

Carmelo


More information about the uClibc mailing list