aboutsummaryrefslogtreecommitdiffstats
path: root/include/err.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-10-17 02:09:54 +0200
committerMattias Andrée <maandree@operamail.com>2015-10-17 02:09:54 +0200
commitc5fff98a6b144deb338e70a909f1efcb03dd44ad (patch)
tree71bd6c1165c5cc8c256a9713d35cb49da7a4a79c /include/err.h
parentfix errors (diff)
downloadslibc-c5fff98a6b144deb338e70a909f1efcb03dd44ad.tar.gz
slibc-c5fff98a6b144deb338e70a909f1efcb03dd44ad.tar.bz2
slibc-c5fff98a6b144deb338e70a909f1efcb03dd44ad.tar.xz
improve attributes
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'include/err.h')
-rw-r--r--include/err.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/err.h b/include/err.h
index 7557a04..a603cbb 100644
--- a/include/err.h
+++ b/include/err.h
@@ -41,7 +41,7 @@
* @param ... Formatting-arguments.
*/
void warn(const char*, ...)
- __GCC_ONLY(__attribute__((format(slibc_printf, 1, 2))));
+ __GCC_ONLY(__attribute__((__format__(__slibc_printf__, 1, 2))));
/**
* Print a warning to stderr, followed by a description
@@ -64,7 +64,7 @@ void vwarn(const char*, va_list);
* @param ... Formatting-arguments.
*/
void warnx(const char*, ...)
- __GCC_ONLY(__attribute__((format(slibc_printf, 1, 2))));
+ __GCC_ONLY(__attribute__((__format__(__slibc_printf__, 1, 2))));
/**
* Print a warning to stderr, but do not print a
@@ -88,7 +88,7 @@ void vwarnx(const char*, va_list);
* @param ... Formatting-arguments.
*/
__noreturn void err(int, const char*, ...)
- __GCC_ONLY(__attribute__((format(slibc_printf, 2, 3))));
+ __GCC_ONLY(__attribute__((__format__(__slibc_printf__, 2, 3))));
/**
* Print an error message to stderr, followed by a
@@ -113,7 +113,7 @@ __noreturn void verr(int, const char*, va_list);
* @param ... Formatting-arguments.
*/
__noreturn void errx(int, const char*, ...)
- __GCC_ONLY(__attribute__((format(slibc_printf, 2, 3))));
+ __GCC_ONLY(__attribute__((__format__(__slibc_printf__, 2, 3))));
/**
* Print an error message to stderr, but do not print a