ソースを参照

Mark __assert as noreturn

Peter S. Mazinger 20 年 前
コミット
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) {