summaryrefslogtreecommitdiffstats
path: root/html.h
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg@netbsd.org>2014-01-05 19:10:56 +0000
committerJoerg Sonnenberger <joerg@netbsd.org>2014-01-05 19:10:56 +0000
commit5e614e747c24e529f84dbfb18721534f909128e9 (patch)
tree6b95f33544f611ed2bc6889a77a346526e7c4d0e /html.h
parentbfc2a1a7b08ccfe41610d07abb12b2eca5139716 (diff)
downloadmandoc-5e614e747c24e529f84dbfb18721534f909128e9.tar.gz
Tag functions with format strings as arguments as printf-like.
Fix one case where a non-literal is used as format string. Fix another case where a variable is formatted using the wrong type.
Diffstat (limited to 'html.h')
-rw-r--r--html.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/html.h b/html.h
index 0fa4cbbf..2e847074 100644
--- a/html.h
+++ b/html.h
@@ -147,6 +147,9 @@ void print_tblclose(struct html *);
void print_tbl(struct html *, const struct tbl_span *);
void print_eqn(struct html *, const struct eqn *);
+#if __GNUC__ - 0 >= 4
+__attribute__((__format__ (__printf__, 2, 3)))
+#endif
void bufcat_fmt(struct html *, const char *, ...);
void bufcat(struct html *, const char *);
void bufcat_id(struct html *, const char *);