Explorar o código

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

Peter S. Mazinger %!s(int64=20) %!d(string=hai) anos
pai
achega
e21214c425
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)