aboutsummaryrefslogtreecommitdiffstatshomepage
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
commitd9597fb775134ff4c4ae106fdb7f3214b5af2463 (patch)
treedce4ca23417904d6be1f14b7df1868abe7ff2eb3 /html.h
parent1e7939918df65f9471cdc0622fe36a0ff3a6ebc9 (diff)
downloadmandoc-d9597fb775134ff4c4ae106fdb7f3214b5af2463.tar.gz
mandoc-d9597fb775134ff4c4ae106fdb7f3214b5af2463.tar.zst
mandoc-d9597fb775134ff4c4ae106fdb7f3214b5af2463.zip
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.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/html.h b/html.h
index 894cfc4c..9b96b9e6 100644
--- a/html.h
+++ b/html.h
@@ -1,4 +1,4 @@
-/* $Id: html.h,v 1.49 2013/08/08 20:07:47 schwarze Exp $ */
+/* $Id: html.h,v 1.50 2014/01/05 19:10:56 joerg Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -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 *);