From 607678e917a8a274f92445854c58aaaa05b824a8 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 | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'html.h') diff --git a/html.h b/html.h index 27dc1401..89e3f89c 100644 --- a/html.h +++ b/html.h @@ -1,4 +1,4 @@ -/* $Id: html.h,v 1.72 2015/11/07 14:01:16 schwarze Exp $ */ +/* $Id: html.h,v 1.73 2016/07/19 13:36:13 schwarze Exp $ */ /* * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons * @@ -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 v1.2.3