summaryrefslogtreecommitdiffstats
path: root/mdoc_validate.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2012-11-16 22:21:05 +0000
committerIngo Schwarze <schwarze@openbsd.org>2012-11-16 22:21:05 +0000
commitfef2be9d4fbfa0fd7ac0a086c950c1ce9013a984 (patch)
tree81f4f49ee588e1bb33214f329f50637fe674b62d /mdoc_validate.c
parent82b810d5c731f9ec651a74358edd7bc1447233ba (diff)
downloadmandoc-fef2be9d4fbfa0fd7ac0a086c950c1ce9013a984.tar.gz
Warn about unknown volume or arch in Dt macro arguments;
patch written by Nicolas Joly <njoly at pasteur dot fr>.
Diffstat (limited to 'mdoc_validate.c')
-rw-r--r--mdoc_validate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c
index 8dcd19f8..80808d93 100644
--- a/mdoc_validate.c
+++ b/mdoc_validate.c
@@ -2205,9 +2205,9 @@ post_dt(POST_ARGS)
free(mdoc->meta.vol);
mdoc->meta.vol = mandoc_strdup(cp);
} else {
- /* FIXME: warn about bad arch. */
cp = mdoc_a2arch(nn->string);
if (NULL == cp) {
+ mdoc_nmsg(mdoc, nn, MANDOCERR_BADVOLARCH);
free(mdoc->meta.vol);
mdoc->meta.vol = mandoc_strdup(nn->string);
} else