Przeglądaj źródła

Mark _exit as noreturn, include/unistd.h does this already

Peter S. Mazinger 20 lat temu
rodzic
commit
e21214c425
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      libc/sysdeps/linux/common/_exit.c

+ 1 - 1
libc/sysdeps/linux/common/_exit.c

@@ -32,7 +32,7 @@
 static inline _syscall1(void, __syscall_exit, int, status);
 #endif
 
-void _exit(int status)
+void __attribute__ ((noreturn)) _exit(int status)
 {
 	/* The loop is added only to keep gcc happy. */
 	while(1)