summaryrefslogtreecommitdiffstats
path: root/html.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2016-07-19 13:36:13 +0000
committerIngo Schwarze <schwarze@openbsd.org>2016-07-19 13:36:13 +0000
commitaf5633117326edd60450c53218694c3e0a895639 (patch)
treeb6879fc1b21fcf25e8f558cc4d83f3c02404bbec /html.h
parent0d64a6e6bb89ff458faef3450acd365244bcf4a8 (diff)
downloadmandoc-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.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/html.h b/html.h
index 500c2c0a..9f650630 100644
--- a/html.h
+++ b/html.h
@@ -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 *,