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 | d9597fb775134ff4c4ae106fdb7f3214b5af2463 (patch) | |
tree | dce4ca23417904d6be1f14b7df1868abe7ff2eb3 /html.h | |
parent | 1e7939918df65f9471cdc0622fe36a0ff3a6ebc9 (diff) | |
download | mandoc-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.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 *); |