From c5fff98a6b144deb338e70a909f1efcb03dd44ad Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 17 Oct 2015 02:09:54 +0200 Subject: improve attributes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- include/err.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include/err.h') 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 -- cgit v1.2.3-70-g09d2