ソースを参照

tweak restore function definitions like glibc does it to get rid of warnings

Mike Frysinger 18 年 前
コミット
2cb0d0f008
1 ファイル変更3 行追加5 行削除
  1. 3 5
      libc/sysdeps/linux/i386/sigaction.c

+ 3 - 5
libc/sysdeps/linux/i386/sigaction.c

@@ -29,9 +29,8 @@
 
 
 #if defined __NR_rt_sigaction
-#warning "Yes there are two warnings here.  Don't worry about it."
-static void restore_rt (void) asm ("__restore_rt");
-static void restore (void) asm ("__restore");
+extern void restore_rt (void) asm ("__restore_rt") attribute_hidden;
+extern void restore (void) asm ("__restore") attribute_hidden;
 
 /* If ACT is not NULL, change the action for SIG to *ACT.
    If OACT is not NULL, put the old action for SIG in *OACT.  */
@@ -73,8 +72,7 @@ int __libc_sigaction (int sig, const struct sigaction *act, struct sigaction *oa
 
 
 #else
-#warning "Yes there is a warning here.  Don't worry about it."
-static void restore (void) asm ("__restore");
+extern void restore (void) asm ("__restore") attribute_hidden;
 
 /* If ACT is not NULL, change the action for SIG to *ACT.
    If OACT is not NULL, put the old action for SIG in *OACT.  */