summaryrefslogtreecommitdiff
path: root/checks.c
diff options
context:
space:
mode:
Diffstat (limited to 'checks.c')
-rw-r--r--checks.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/checks.c b/checks.c
index 6325ee9..2ce961c 100644
--- a/checks.c
+++ b/checks.c
@@ -87,6 +87,9 @@ struct check {
#define BATCH_CHECK(nm, lvl, ...) \
CHECK(nm, NULL, NULL, NULL, NULL, lvl, __VA_ARGS__)
+#ifdef __GNUC__
+static inline void check_msg(struct check *c, const char *fmt, ...) __attribute__((format (printf, 2, 3)));
+#endif
static inline void check_msg(struct check *c, const char *fmt, ...)
{
va_list ap;