diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-12-05 15:55:01 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-12-05 15:55:01 +0000 |
commit | da864306deafefa98f63fe802fa901c9aec68f65 (patch) | |
tree | d2c992b5d14975fd6dd68e2ec32344c1a233d599 | |
parent | 17d87274a35b068e7bf8fa10374f640943cf7bb4 (diff) | |
download | mandoc-da864306deafefa98f63fe802fa901c9aec68f65.tar.gz |
Remove long-standing FIXME regarding the consolidation of WIDTHARG and
NOARGV warnings. From patch by schwarze@.
-rw-r--r-- | main.c | 1 | ||||
-rw-r--r-- | mandoc.h | 2 | ||||
-rw-r--r-- | mdoc_validate.c | 5 |
3 files changed, 2 insertions, 6 deletions
@@ -133,7 +133,6 @@ static const char * const mandocerrs[MANDOCERR_MAX] = { "bad escape sequence", "unterminated quoted string", "argument requires the width argument", - "superfluous width argument", "bad date argument", "bad width argument", "unknown manual section", @@ -56,8 +56,6 @@ enum mandocerr { MANDOCERR_BADESCAPE, /* bad escape sequence */ MANDOCERR_BADQUOTE, /* unterminated quoted string */ MANDOCERR_NOWIDTHARG, /* argument requires the width argument */ - /* FIXME: merge with MANDOCERR_IGNARGV. */ - MANDOCERR_WIDTHARG, /* superfluous width argument */ MANDOCERR_BADDATE, /* bad date argument */ MANDOCERR_BADWIDTH, /* bad width argument */ MANDOCERR_BADMSEC, /* unknown manual section */ diff --git a/mdoc_validate.c b/mdoc_validate.c index fa9f3e13..c25bbf6d 100644 --- a/mdoc_validate.c +++ b/mdoc_validate.c @@ -753,9 +753,8 @@ pre_bl(PRE_ARGS) case (LIST_inset): /* FALLTHROUGH */ case (LIST_item): - if (NULL == n->data.Bl->width) - break; - mdoc_nmsg(mdoc, n, MANDOCERR_WIDTHARG); + if (n->data.Bl->width) + mdoc_nmsg(mdoc, n, MANDOCERR_IGNARGV); break; default: break; |