summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-06-03 12:17:25 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-06-03 12:17:25 +0000
commit3248b177a4b5624bb57796f898b81736244d2579 (patch)
tree18d571acc0f73d4d412d805884cc943029af12ab
parentbfb452504d8b3a8d83033a92009dcdba6370788c (diff)
downloadmandoc-3248b177a4b5624bb57796f898b81736244d2579.tar.gz
enable -Wstyle by default in -Tlint; OK jmc@
-rw-r--r--main.c2
-rw-r--r--mandoc.14
2 files changed, 3 insertions, 3 deletions
diff --git a/main.c b/main.c
index a2ef8518..90162ad9 100644
--- a/main.c
+++ b/main.c
@@ -937,7 +937,7 @@ toptions(struct curparse *curp, char *arg)
curp->outtype = OUTT_ASCII;
else if (0 == strcmp(arg, "lint")) {
curp->outtype = OUTT_LINT;
- curp->wlevel = MANDOCLEVEL_WARNING;
+ curp->wlevel = MANDOCLEVEL_STYLE;
} else if (0 == strcmp(arg, "tree"))
curp->outtype = OUTT_TREE;
else if (0 == strcmp(arg, "man"))
diff --git a/mandoc.1 b/mandoc.1
index 58c0812b..eb3b32fd 100644
--- a/mandoc.1
+++ b/mandoc.1
@@ -219,7 +219,7 @@ See
.It Fl T Cm lint
Parse only: produce no output.
Implies
-.Fl W Cm warning .
+.Fl W Cm style .
.It Fl T Cm locale
Encode output using the current locale.
This is the default.
@@ -632,7 +632,7 @@ to exit at once, possibly in the middle of parsing or formatting a file.
Note that selecting
.Fl T Cm lint
output mode implies
-.Fl W Cm warning .
+.Fl W Cm style .
.Sh EXAMPLES
To page manuals to the terminal:
.Pp