Explorar el Código

Mark __assert as noreturn

Peter S. Mazinger hace 20 años
padre
commit
cf4d1f62f9
Se han modificado 1 ficheros con 1 adiciones y 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) {