diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-04-06 17:01:27 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-04-06 17:01:27 +0000 |
commit | f6dd6a8975af8d5bf3e1397a69e955666d4ee3c3 (patch) | |
tree | 4bd07d7ae73f3c249fbdf26c5f7b60cb19119a35 | |
parent | 188c8509a88c2d2372877692bfb173e9de929404 (diff) | |
download | mandoc-f6dd6a8975af8d5bf3e1397a69e955666d4ee3c3.tar.gz |
Removed warning for `Er' when not used in certain sections (pointed out by Joerg Sonnenberger).
-rw-r--r-- | mdoc.7 | 2 | ||||
-rw-r--r-- | mdoc_validate.c | 11 |
2 files changed, 2 insertions, 11 deletions
@@ -1635,7 +1635,7 @@ Examples: .Ss \&En .Ss \&Eo .Ss \&Er -Error constants (suggested for use only in section two manuals). +Display error constants. .Pp Examples: .Bd -literal -offset indent diff --git a/mdoc_validate.c b/mdoc_validate.c index f2bdeff2..2f27220d 100644 --- a/mdoc_validate.c +++ b/mdoc_validate.c @@ -102,7 +102,6 @@ static int pre_cd(PRE_ARGS); static int pre_dd(PRE_ARGS); static int pre_display(PRE_ARGS); static int pre_dt(PRE_ARGS); -static int pre_er(PRE_ARGS); static int pre_ex(PRE_ARGS); static int pre_fd(PRE_ARGS); static int pre_it(PRE_ARGS); @@ -142,7 +141,7 @@ static v_pre pres_cd[] = { pre_cd, NULL }; static v_pre pres_d1[] = { pre_display, NULL }; static v_pre pres_dd[] = { pre_dd, NULL }; static v_pre pres_dt[] = { pre_dt, NULL }; -static v_pre pres_er[] = { pre_er, NULL }; +static v_pre pres_er[] = { NULL, NULL }; static v_pre pres_ex[] = { pre_ex, NULL }; static v_pre pres_fd[] = { pre_fd, NULL }; static v_pre pres_it[] = { pre_it, NULL }; @@ -804,14 +803,6 @@ pre_ex(PRE_ARGS) static int -pre_er(PRE_ARGS) -{ - - return(check_msec(mdoc, n, 2, 3, 9, 0)); -} - - -static int pre_cd(PRE_ARGS) { |