diff options
Diffstat (limited to '')
-rw-r--r-- | include/assert.h | 4 | ||||
-rw-r--r-- | include/err.h | 12 | ||||
-rw-r--r-- | include/stdlib.h | 8 | ||||
-rw-r--r-- | include/unistd.h | 2 |
4 files changed, 13 insertions, 13 deletions
diff --git a/include/assert.h b/include/assert.h index c3d69f3..73ebabd 100644 --- a/include/assert.h +++ b/include/assert.h @@ -92,8 +92,8 @@ * @param line The line in the source code whence the assertion was made * @param func The function in the source code whence the assertion was made */ -void __assert_fail(const char*, int, const char*, int, const char*) - __GCC_ONLY(__attribute__((nonnull(3, 5)))) __noreturn; +__noreturn void __assert_fail(const char*, int, const char*, int, const char*) + __GCC_ONLY(__attribute__((nonnull(3, 5)))); diff --git a/include/err.h b/include/err.h index 3f52afc..ca28491 100644 --- a/include/err.h +++ b/include/err.h @@ -87,8 +87,8 @@ void vwarnx(const char*, va_list); * @param format Formatting-string for the warning. * @param ... Formatting-arguments. */ -void err(int, const char*, ...) - __GCC_ONLY(__attribute__((format(printf, 2, 3)))) __noreturn; +__noreturn void err(int, const char*, ...) + __GCC_ONLY(__attribute__((format(printf, 2, 3)))); /** * Print an error message to stderr, followed by a @@ -100,7 +100,7 @@ void err(int, const char*, ...) * @param format Formatting-string for the warning. * @param args Formatting-arguments. */ -void verr(int, const char*, va_list) __noreturn; +__noreturn void verr(int, const char*, va_list); /** * Print an error message to stderr, but do not print a @@ -112,8 +112,8 @@ void verr(int, const char*, va_list) __noreturn; * @param format Formatting-string for the warning. * @param ... Formatting-arguments. */ -void errx(int, const char*, ...) - __noreturn __GCC_ONLY(__attribute__((format(printf, 2, 3)))); +__noreturn void errx(int, const char*, ...) + __GCC_ONLY(__attribute__((format(printf, 2, 3)))); /** * Print an error message to stderr, but do not print a @@ -125,7 +125,7 @@ void errx(int, const char*, ...) * @param format Formatting-string for the warning. * @param args Formatting-arguments. */ -void verrx(int, const char*, va_list) __noreturn; +__noreturn void verrx(int, const char*, va_list); diff --git a/include/stdlib.h b/include/stdlib.h index 4fba1a0..43f36c6 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -262,13 +262,13 @@ void srand(unsigned int seed); /* TODO implement exit-functions */ -void abort(void) __noreturn; -void _Exit(int) __noreturn; +__noreturn void abort(void); +__noreturn void _Exit(int); int atexit(void (*)(void)); int on_exit(void (*)(int, void*), void*); -void exit(int) __noreturn; +__noreturn void exit(int); int at_quick_exit (void (*) (void)); -void quick_exit(int) __noreturn; +__noreturn void quick_exit(int); diff --git a/include/unistd.h b/include/unistd.h index 6402c27..fb4992d 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -135,7 +135,7 @@ void* sbrk(ptrdiff_t) /* TODO implement sbrk */ /* TODO implement exit-functions */ -void _exit(int) __noreturn; +__noreturn void _exit(int); /* TODO implement I/O */ |