From 78bcab5a5c200a429af92290e862e9f8a619eb00 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Wed, 28 Dec 2016 17:21:18 +0000 Subject: 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. --- regress/usr.bin/mandoc/mdoc/Xr/args.out_lint | 1 + 1 file changed, 1 insertion(+) (limited to 'regress/usr.bin/mandoc/mdoc') diff --git a/regress/usr.bin/mandoc/mdoc/Xr/args.out_lint b/regress/usr.bin/mandoc/mdoc/Xr/args.out_lint index 703a0abf3e6..8ade74883cc 100644 --- a/regress/usr.bin/mandoc/mdoc/Xr/args.out_lint +++ b/regress/usr.bin/mandoc/mdoc/Xr/args.out_lint @@ -1,2 +1,3 @@ mandoc: args.in:24:2: WARNING: skipping empty macro: Xr mandoc: args.in:26:2: WARNING: skipping empty macro: Xr +mandoc: args.in:22:2: WARNING: missing section argument: Xr echo -- cgit v1.2.3