diff --git a/include/assert.h b/include/assert.h index e679adbf8338ed3280230089fa4e2c871e27a129..d14ec94e7a263b2cbaa3a72b9ff09dc9d8807886 100644 --- a/include/assert.h +++ b/include/assert.h @@ -16,7 +16,7 @@ extern "C" { #endif -void __assert_fail (const char *, const char *, int, const char *); +_Noreturn void __assert_fail (const char *, const char *, int, const char *); #ifdef __cplusplus } diff --git a/src/exit/assert.c b/src/exit/assert.c index e87442a7c50d9ca8fdf267d7c6038780941c56d3..49b0dc3ec434c68a92ad3c38f087aec74c45e4e3 100644 --- a/src/exit/assert.c +++ b/src/exit/assert.c @@ -1,7 +1,7 @@ #include #include -void __assert_fail(const char *expr, const char *file, int line, const char *func) +_Noreturn void __assert_fail(const char *expr, const char *file, int line, const char *func) { fprintf(stderr, "Assertion failed: %s (%s: %s: %d)\n", expr, file, func, line); fflush(NULL);