summaryrefslogtreecommitdiffstats
path: root/mdoc_validate.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-04-03 13:02:35 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-04-03 13:02:35 +0000
commitd9b4ef04d59b4dfd661c39eee2c8bb5faafc55cf (patch)
tree0e7f76f0d95b64161f48ff031fbf3fc8fbf761bc /mdoc_validate.c
parent4a9daab0eee75a39e31cd397377bcf847eb585f1 (diff)
downloadmandoc-d9b4ef04d59b4dfd661c39eee2c8bb5faafc55cf.tar.gz
Merging patch by Ingo Schwarze.
Diffstat (limited to 'mdoc_validate.c')
-rw-r--r--mdoc_validate.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c
index 676862fb..e67286a5 100644
--- a/mdoc_validate.c
+++ b/mdoc_validate.c
@@ -1308,8 +1308,9 @@ post_sh_head(POST_ARGS)
* non-CUSTOM has a conventional order to be followed.
*/
- if (SEC_NAME != sec && SEC_NONE == mdoc->lastnamed)
- return(mdoc_nerr(mdoc, mdoc->last, ESECNAME));
+ if (SEC_NAME != sec && SEC_NONE == mdoc->lastnamed &&
+ ! mdoc_nwarn(mdoc, mdoc->last, ESECNAME))
+ return(0);
if (SEC_CUSTOM == sec)
return(1);
if (sec == mdoc->lastnamed)