aboutsummaryrefslogtreecommitdiffstats
path: root/include/err.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-10-13 03:48:22 +0200
committerMattias Andrée <maandree@operamail.com>2015-10-13 03:48:22 +0200
commit05af780f82210b80783fa5870bce28189cc25cf1 (patch)
tree16cf2169f85775491ba44695bef1dd9a83fbc97a /include/err.h
parentstatic_assert is only defined if C11 is used (diff)
downloadslibc-05af780f82210b80783fa5870bce28189cc25cf1.tar.gz
slibc-05af780f82210b80783fa5870bce28189cc25cf1.tar.bz2
slibc-05af780f82210b80783fa5870bce28189cc25cf1.tar.xz
__noreturn shall be at the beginning of the prototypes
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--include/err.h12
1 files changed, 6 insertions, 6 deletions
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);