aboutsummaryrefslogtreecommitdiff
path: root/include/errors.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/errors.h')
-rw-r--r--include/errors.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/errors.h b/include/errors.h
index 1cd6b70..dfd092a 100644
--- a/include/errors.h
+++ b/include/errors.h
@@ -5,11 +5,11 @@
#include "_attrs.h"
-[[_mlib_printf(1, 2)]] void warn(const char *, ...);
+[[gnu::format(printf, 1, 2)]] void warn(const char *, ...);
void vwarn(const char *, va_list);
-[[__noreturn__, _mlib_printf(1, 2)]] void err(const char *, ...);
-[[__noreturn__, _mlib_printf(2, 3)]] void cerr(int, const char *, ...);
+[[noreturn, gnu::format(printf, 1, 2)]] void err(const char *, ...);
+[[noreturn, gnu::format(printf, 2, 3)]] void cerr(int, const char *, ...);
extern const char *__mlib_errors_progname;