Browse Source

__longjmp/__libc_longjmp as noreturn

Peter S. Mazinger 19 years ago
parent
commit
0de41b04e1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      libc/sysdeps/linux/common/longjmp.c

+ 2 - 2
libc/sysdeps/linux/common/longjmp.c

@@ -22,13 +22,13 @@
 
 
 libc_hidden_proto(sigprocmask)
 libc_hidden_proto(sigprocmask)
 
 
-extern __typeof(longjmp) __longjmp;
+extern void __longjmp (__jmp_buf __env, int __val) attribute_noreturn;
 libc_hidden_proto(__longjmp)
 libc_hidden_proto(__longjmp)
 
 
 /* Set the signal mask to the one specified in ENV, and jump
 /* Set the signal mask to the one specified in ENV, and jump
    to the position specified in ENV, causing the setjmp
    to the position specified in ENV, causing the setjmp
    call there to return VAL, or 1 if VAL is 0.  */
    call there to return VAL, or 1 if VAL is 0.  */
-void __libc_longjmp (sigjmp_buf env, int val)
+void attribute_noreturn __libc_longjmp (sigjmp_buf env, int val)
 {
 {
 #if 0
 #if 0
   /* Perform any cleanups needed by the frames being unwound.  */
   /* Perform any cleanups needed by the frames being unwound.  */