From af5633117326edd60450c53218694c3e0a895639 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Tue, 19 Jul 2016 13:36:13 +0000 Subject: 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. --- html.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'html.h') 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 *, -- cgit