浏览代码

Mark __assert as noreturn

Peter S. Mazinger 19 年之前
父节点
当前提交
cf4d1f62f9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      libc/misc/assert/__assert.c

+ 1 - 1
libc/misc/assert/__assert.c

@@ -47,7 +47,7 @@ libc_hidden_proto(stderr)
 
 static int in_assert;			/* bss inits to 0. */
 
-void __assert(const char *assertion, const char * filename,
+void attribute_noreturn __assert(const char *assertion, const char * filename,
 			  int linenumber, register const char * function)
 {
 	if (!in_assert) {