diff options
Diffstat (limited to 'include/errors.h')
-rw-r--r-- | include/errors.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/include/errors.h b/include/errors.h index 6721afa..8484010 100644 --- a/include/errors.h +++ b/include/errors.h @@ -3,22 +3,23 @@ #include <stdarg.h> -[[gnu::format(printf, 1, 2)]] void warn(const char *, ...); -[[gnu::format(printf, 1, 2)]] void warnx(const char *, ...); +[[gnu::__format__(printf, 1, 2)]] void warn(const char *, ...); +[[gnu::__format__(printf, 1, 2)]] void warnx(const char *, ...); void vwarn(const char *, va_list); void vwarnx(const char *, va_list); -[[noreturn, gnu::format(printf, 1, 2)]] void err(const char *, ...); -[[noreturn, gnu::format(printf, 1, 2)]] void errx(const char *, ...); -[[noreturn, gnu::format(printf, 2, 3)]] void cerr(int, const char *, ...); -[[noreturn, gnu::format(printf, 2, 3)]] void cerrx(int, const char *, ...); +[[__noreturn__, gnu::__format__(printf, 1, 2)]] void err(const char *, ...); +[[__noreturn__, gnu::__format__(printf, 1, 2)]] void errx(const char *, ...); +[[__noreturn__, gnu::__format__(printf, 2, 3)]] void cerr(int, const char *, + ...); +[[__noreturn__, gnu::__format__(printf, 2, 3)]] void cerrx(int, const char *, + ...); extern const char *__mlib_errors_progname; void mlib_setprogname(const char *); -[[gnu::always_inline]] -static inline const char * +[[gnu::__always_inline__]] static inline const char * mlib_progname(void) { return __mlib_errors_progname; |