aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit607678e917a8a274f92445854c58aaaa05b824a8 (patch)
treea5dfdca19aaab7604737bb285f32470aabc72029 /html.h
parent6b89b9b2b63e9e25bf91f88bab4163a497bfcca4 (diff)
downloadmandoc-607678e917a8a274f92445854c58aaaa05b824a8.tar.gz
mandoc-607678e917a8a274f92445854c58aaaa05b824a8.tar.zst
mandoc-607678e917a8a274f92445854c58aaaa05b824a8.zip
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.h8
1 files changed, 3 insertions, 5 deletions
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 <kristaps@bsd.lv>
*
@@ -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 *,