summaryrefslogtreecommitdiffstats
path: root/libmandoc.h
diff options
context:
space:
mode:
Diffstat (limited to 'libmandoc.h')
-rw-r--r--libmandoc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libmandoc.h b/libmandoc.h
index 198184a0..fdffe625 100644
--- a/libmandoc.h
+++ b/libmandoc.h
@@ -38,6 +38,9 @@ struct man;
void mandoc_msg(enum mandocerr, struct mparse *,
int, int, const char *);
+#if __GNUC__ - 0 >= 4
+__attribute__((__format__ (__printf__, 5, 6)))
+#endif
void mandoc_vmsg(enum mandocerr, struct mparse *,
int, int, const char *, ...);
char *mandoc_getarg(struct mparse *, char **, int, int *);