瀏覽代碼

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

Peter S. Mazinger 20 年之前
父節點
當前提交
e21214c425
共有 1 個文件被更改,包括 1 次插入1 次删除
  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)