Explorar o código

Mark __assert as noreturn

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