diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2016-12-28 17:34:18 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2016-12-28 17:34:18 +0000 |
commit | 680c932a062c93aa4d054794539b762b8c62b781 (patch) | |
tree | ee7554c1bc5f564cf720259e483a9c5913b549f2 /read.c | |
parent | 296ca97e61f5c92e7b681de5cfbefd00df41afe0 (diff) | |
download | mandoc-680c932a062c93aa4d054794539b762b8c62b781.tar.gz mandoc-680c932a062c93aa4d054794539b762b8c62b781.tar.zst mandoc-680c932a062c93aa4d054794539b762b8c62b781.zip |
Make the second, section number argument of .Xr mandatory.
In fact, we have been requiring it for many years.
The only reason to not warn when it was missing
was excessive traditionalism - it was optional in 4.4BSD.
Diffstat (limited to 'read.c')
-rw-r--r-- | read.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: read.c,v 1.154 2016/12/07 22:59:29 schwarze Exp $ */ +/* $Id: read.c,v 1.155 2016/12/28 17:34:18 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010-2016 Ingo Schwarze <schwarze@openbsd.org> @@ -150,6 +150,7 @@ static const char * const mandocerrs[MANDOCERR_MAX] = { "unknown font type, using \\fR", "nothing follows prefix", "empty reference block", + "missing section argument", "missing -std argument, adding it", "missing option string, using \"\"", "missing resource identifier, using \"\"", |