summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2017-06-03 12:16:20 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2017-06-03 12:16:20 +0000
commit0053de530a804dc91ec2915574479db050c56215 (patch)
tree288c5c196088209e8442d060600d7da2ed545c69
parent08a21d649f59ac0eb3da2b2b3ea5608f54589938 (diff)
enable -Wstyle by default in -Tlint; OK jmc@
-rw-r--r--usr.bin/mandoc/main.c4
-rw-r--r--usr.bin/mandoc/mandoc.18
2 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/mandoc/main.c b/usr.bin/mandoc/main.c
index c029f485c03..bd843e6bebb 100644
--- a/usr.bin/mandoc/main.c
+++ b/usr.bin/mandoc/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.194 2017/05/17 23:39:15 schwarze Exp $ */
+/* $OpenBSD: main.c,v 1.195 2017/06/03 12:16:19 schwarze Exp $ */
/*
* Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2012, 2014-2017 Ingo Schwarze <schwarze@openbsd.org>
@@ -907,7 +907,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/usr.bin/mandoc/mandoc.1 b/usr.bin/mandoc/mandoc.1
index 1bb9bf0e77a..25971045f6a 100644
--- a/usr.bin/mandoc/mandoc.1
+++ b/usr.bin/mandoc/mandoc.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: mandoc.1,v 1.116 2017/06/01 15:24:41 schwarze Exp $
+.\" $OpenBSD: mandoc.1,v 1.117 2017/06/03 12:16:19 schwarze Exp $
.\"
.\" Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
.\" Copyright (c) 2012, 2014-2017 Ingo Schwarze <schwarze@openbsd.org>
@@ -15,7 +15,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: June 1 2017 $
+.Dd $Mdocdate: June 3 2017 $
.Dt MANDOC 1
.Os
.Sh NAME
@@ -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