diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2017-05-30 19:29:32 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2017-05-30 19:29:32 +0000 |
commit | 821870bd1cd6836e81163d6bf39b7ebb53d4aca2 (patch) | |
tree | 312a8a4417cf0cc64ca947c92deed1dd7c42fbf7 /regress | |
parent | e69d9e49296b24aa15ef3dce4d5ad3e6b3ab0b9e (diff) |
STYLE message about useless macros we don't want (Bt Tn Ud);
not a WARNING because they don't endanger portability
Diffstat (limited to 'regress')
-rw-r--r-- | regress/usr.bin/mandoc/Makefile.inc | 6 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/mdoc/Tn/noarg.out_lint | 1 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/mdoc/Ud/arg.out_lint | 6 |
3 files changed, 10 insertions, 3 deletions
diff --git a/regress/usr.bin/mandoc/Makefile.inc b/regress/usr.bin/mandoc/Makefile.inc index 0c640a5bf8c..1f7a138cb62 100644 --- a/regress/usr.bin/mandoc/Makefile.inc +++ b/regress/usr.bin/mandoc/Makefile.inc @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.inc,v 1.22 2017/03/08 22:53:35 schwarze Exp $ +# $OpenBSD: Makefile.inc,v 1.23 2017/05/30 19:29:31 schwarze Exp $ .include "Makefile.sub" @@ -108,7 +108,7 @@ htmlval: ${_HTMLVALS} @${MANDOC} -man -Tascii -Omdoc ${.IMPSRC} > ${.TARGET} .in.mandoc_lint: - @-${MANDOC} ${MOPTS} -Tlint ${.IMPSRC} 2>&1 | \ + @-${MANDOC} ${MOPTS} -Tlint -Wall ${.IMPSRC} 2>&1 | \ sed -E 's/^mandoc: \/[^:]+\//mandoc: /' > ${.TARGET} .mandoc_lint.diff_lint: @@ -289,7 +289,7 @@ ${t}.out_markdown: ${t}.in .for t in ${LINT_TARGETS} ${t}.out_lint: ${t}.in - -${MANDOC} ${MOPTS} -Tlint ${.ALLSRC} > ${.TARGET} 2>&1 + -${MANDOC} ${MOPTS} -Tlint -Wall ${.ALLSRC} > ${.TARGET} 2>&1 .endfor # --- phony targets --- diff --git a/regress/usr.bin/mandoc/mdoc/Tn/noarg.out_lint b/regress/usr.bin/mandoc/mdoc/Tn/noarg.out_lint index 74e0b6fc842..340a3502df2 100644 --- a/regress/usr.bin/mandoc/mdoc/Tn/noarg.out_lint +++ b/regress/usr.bin/mandoc/mdoc/Tn/noarg.out_lint @@ -1 +1,2 @@ mandoc: noarg.in:11:2: WARNING: skipping empty macro: Tn +mandoc: noarg.in:9:2: STYLE: useless macro: Tn diff --git a/regress/usr.bin/mandoc/mdoc/Ud/arg.out_lint b/regress/usr.bin/mandoc/mdoc/Ud/arg.out_lint index 854845cdd40..eac1710faf6 100644 --- a/regress/usr.bin/mandoc/mdoc/Ud/arg.out_lint +++ b/regress/usr.bin/mandoc/mdoc/Ud/arg.out_lint @@ -1,4 +1,10 @@ +mandoc: arg.in:9:2: STYLE: useless macro: Ud +mandoc: arg.in:11:2: STYLE: useless macro: Bt +mandoc: arg.in:15:2: STYLE: useless macro: Ud mandoc: arg.in:15:2: ERROR: skipping all arguments: Ud bar +mandoc: arg.in:16:2: STYLE: useless macro: Bt mandoc: arg.in:16:2: ERROR: skipping all arguments: Bt foo +mandoc: arg.in:17:2: STYLE: useless macro: Ud mandoc: arg.in:17:2: ERROR: skipping all arguments: Ud one +mandoc: arg.in:18:2: STYLE: useless macro: Bt mandoc: arg.in:18:2: ERROR: skipping all arguments: Bt one |