NOARGV warnings. From patch by schwarze@.
-/* $Id: main.c,v 1.117 2010/12/05 15:49:37 kristaps Exp $ */
+/* $Id: main.c,v 1.118 2010/12/05 15:55:01 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010 Ingo Schwarze <schwarze@openbsd.org>
"bad escape sequence",
"unterminated quoted string",
"argument requires the width argument",
- "superfluous width argument",
"bad date argument",
"bad width argument",
"unknown manual section",
-/* $Id: mandoc.h,v 1.28 2010/12/05 15:49:37 kristaps Exp $ */
+/* $Id: mandoc.h,v 1.29 2010/12/05 15:55:01 kristaps Exp $ */
/*
* Copyright (c) 2010 Kristaps Dzonsons <kristaps@bsd.lv>
*
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 */
-/* $Id: mdoc_validate.c,v 1.136 2010/12/05 15:49:37 kristaps Exp $ */
+/* $Id: mdoc_validate.c,v 1.137 2010/12/05 15:55:01 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
*
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;