diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2015-02-06 07:13:14 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2015-02-06 07:13:14 +0000 |
commit | 7fefe85053961b17df364545120a269be409beb4 (patch) | |
tree | 6d94494870630a9f491e0b4a94211c5beea6e4ba /man_validate.c | |
parent | 7dfe6b3fdffd0ff76af3e3d347b0f300fddb15e8 (diff) | |
download | mandoc-7fefe85053961b17df364545120a269be409beb4.tar.gz mandoc-7fefe85053961b17df364545120a269be409beb4.tar.zst mandoc-7fefe85053961b17df364545120a269be409beb4.zip |
Delete the legacy generic warning type MANDOCERR_ARGCWARN,
replacing the last instances by more specific warnings.
Improved functionality, minus 50 lines of code.
Diffstat (limited to 'man_validate.c')
-rw-r--r-- | man_validate.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/man_validate.c b/man_validate.c index 3a774965..2e844d19 100644 --- a/man_validate.c +++ b/man_validate.c @@ -252,9 +252,9 @@ static void check_part(CHKARGS) { - if (MAN_BODY == n->type && 0 == n->nchild) - mandoc_msg(MANDOCERR_ARGCWARN, man->parse, n->line, - n->pos, "want children (have none)"); + if (n->type == MAN_BODY && n->child == NULL) + mandoc_msg(MANDOCERR_BLK_EMPTY, man->parse, + n->line, n->pos, man_macronames[n->tok]); } static void |