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 | 607678e917a8a274f92445854c58aaaa05b824a8 (patch) | |
tree | a5dfdca19aaab7604737bb285f32470aabc72029 /main.c | |
parent | 6b89b9b2b63e9e25bf91f88bab4163a497bfcca4 (diff) | |
download | mandoc-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 'main.c')
-rw-r--r-- | main.c | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.272 2016/07/15 19:33:01 schwarze Exp $ */ +/* $Id: main.c,v 1.273 2016/07/19 13:36:13 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010-2012, 2014-2016 Ingo Schwarze <schwarze@openbsd.org> @@ -51,12 +51,6 @@ #include "manconf.h" #include "mansearch.h" -#if !defined(__GNUC__) || (__GNUC__ < 2) -# if !defined(lint) -# define __attribute__(x) -# endif -#endif /* !defined(__GNUC__) || (__GNUC__ < 2) */ - enum outmode { OUTMODE_DEF = 0, OUTMODE_FLN, |