diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2016-07-19 13:36:13 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2016-07-19 13:36:13 +0000 |
commit | af5633117326edd60450c53218694c3e0a895639 (patch) | |
tree | b6879fc1b21fcf25e8f558cc4d83f3c02404bbec /html.h | |
parent | 0d64a6e6bb89ff458faef3450acd365244bcf4a8 (diff) | |
download | mandoc-af5633117326edd60450c53218694c3e0a895639.tar.gz |
Use __attribute__((__format__ throughout.
Triggered by a smaller patch from Christos Zoulas.
While here, unify style, move several config tests to config.h,
and delete the useless MANDOC_CONFIG_H.
Diffstat (limited to 'html.h')
-rw-r--r-- | html.h | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -158,10 +158,8 @@ void print_tbl(struct html *, const struct tbl_span *); void print_eqn(struct html *, const struct eqn *); void print_paragraph(struct html *); -#if __GNUC__ - 0 >= 4 -__attribute__((__format__ (__printf__, 2, 3))) -#endif -void bufcat_fmt(struct html *, const char *, ...); +void bufcat_fmt(struct html *, const char *, ...) + __attribute__((__format__ (printf, 2, 3))); void bufcat(struct html *, const char *); void bufcat_id(struct html *, const char *); void bufcat_style(struct html *, |