aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libmandoc.h
diff options
context:
space:
mode:
Diffstat (limited to 'libmandoc.h')
-rw-r--r--libmandoc.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/libmandoc.h b/libmandoc.h
index 192346a0..ab243ff9 100644
--- a/libmandoc.h
+++ b/libmandoc.h
@@ -1,4 +1,4 @@
-/* $Id: libmandoc.h,v 1.36 2013/12/31 23:23:10 schwarze Exp $ */
+/* $Id: libmandoc.h,v 1.37 2014/01/05 19:10:56 joerg Exp $ */
/*
* Copyright (c) 2009, 2010, 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2013 Ingo Schwarze <schwarze@openbsd.org>
@@ -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 *);