diff options
author | Joerg Sonnenberger <joerg@netbsd.org> | 2014-01-05 19:10:56 +0000 |
---|---|---|
committer | Joerg Sonnenberger <joerg@netbsd.org> | 2014-01-05 19:10:56 +0000 |
commit | 5e614e747c24e529f84dbfb18721534f909128e9 (patch) | |
tree | 6b95f33544f611ed2bc6889a77a346526e7c4d0e /html.h | |
parent | bfc2a1a7b08ccfe41610d07abb12b2eca5139716 (diff) | |
download | mandoc-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.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 *); |