From 05af780f82210b80783fa5870bce28189cc25cf1 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 13 Oct 2015 03:48:22 +0200 Subject: __noreturn shall be at the beginning of the prototypes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- include/err.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'include/err.h') 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); -- cgit v1.2.3-70-g09d2