diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-07-06 22:59:48 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-07-06 22:59:48 +0000 |
commit | 6a839304b76d9277a3ad6e29ba1ca510c3c69ad3 (patch) | |
tree | 0d84087d38b1a70b7315a161f3489dd702d0b8e6 /regress | |
parent | 85dde46a7c3beea67394f0a89322372457dcbbf4 (diff) | |
download | mandoc-6a839304b76d9277a3ad6e29ba1ca510c3c69ad3.tar.gz mandoc-6a839304b76d9277a3ad6e29ba1ca510c3c69ad3.tar.zst mandoc-6a839304b76d9277a3ad6e29ba1ca510c3c69ad3.zip |
Now that we have the -Wstyle message level, downgrade six warnings
that are not syntax mistakes and that do not cause wrong formatting
or content to style suggestions.
Also upgrade two warnings that may cause information loss to errors.
Diffstat (limited to 'regress')
-rw-r--r-- | regress/char/space/trailing-mdoc.out_lint | 6 | ||||
-rw-r--r-- | regress/man/SH/noarg.out_lint | 2 | ||||
-rw-r--r-- | regress/man/SS/noarg.out_lint | 2 | ||||
-rw-r--r-- | regress/man/TH/case.out_lint | 2 | ||||
-rw-r--r-- | regress/man/nf/dupe.out_lint | 4 | ||||
-rw-r--r-- | regress/mdoc/Bd/blank.out_lint | 14 | ||||
-rw-r--r-- | regress/mdoc/Dd/dupe.out_lint | 4 | ||||
-rw-r--r-- | regress/mdoc/Dt/case.out_lint | 2 | ||||
-rw-r--r-- | regress/mdoc/Dt/dupe.out_lint | 4 | ||||
-rw-r--r-- | regress/mdoc/Dt/late.out_lint | 2 | ||||
-rw-r--r-- | regress/mdoc/Os/dupe.out_lint | 4 | ||||
-rw-r--r-- | regress/mdoc/blank/comment.out_lint | 2 | ||||
-rw-r--r-- | regress/roff/args/man.out_lint | 16 | ||||
-rw-r--r-- | regress/roff/args/mdoc.out_lint | 24 | ||||
-rw-r--r-- | regress/roff/args/roff.out_lint | 32 | ||||
-rw-r--r-- | regress/roff/nr/escname.out_lint | 2 | ||||
-rw-r--r-- | regress/roff/string/name.out_lint | 14 |
17 files changed, 68 insertions, 68 deletions
diff --git a/regress/char/space/trailing-mdoc.out_lint b/regress/char/space/trailing-mdoc.out_lint index 701f864a..68e501a1 100644 --- a/regress/char/space/trailing-mdoc.out_lint +++ b/regress/char/space/trailing-mdoc.out_lint @@ -1,3 +1,3 @@ -mandoc: trailing-mdoc.in:9:16: WARNING: whitespace at end of input line -mandoc: trailing-mdoc.in:11:12: WARNING: whitespace at end of input line -mandoc: trailing-mdoc.in:12:27: WARNING: whitespace at end of input line +mandoc: trailing-mdoc.in:9:16: STYLE: whitespace at end of input line +mandoc: trailing-mdoc.in:11:12: STYLE: whitespace at end of input line +mandoc: trailing-mdoc.in:12:27: STYLE: whitespace at end of input line diff --git a/regress/man/SH/noarg.out_lint b/regress/man/SH/noarg.out_lint index 12a013c6..db76fa1c 100644 --- a/regress/man/SH/noarg.out_lint +++ b/regress/man/SH/noarg.out_lint @@ -10,5 +10,5 @@ mandoc: noarg.in:30:2: ERROR: skipping end of block that is not open: RE mandoc: noarg.in:32:2: WARNING: line scope broken: UR breaks SH mandoc: noarg.in:35:2: WARNING: line scope broken: UE breaks SH mandoc: noarg.in:36:2: ERROR: skipping end of block that is not open: UE -mandoc: noarg.in:42:2: WARNING: fill mode already enabled, skipping: fi +mandoc: noarg.in:42:2: STYLE: fill mode already enabled, skipping: fi mandoc: noarg.in:45:1: WARNING: skipping blank line in line scope diff --git a/regress/man/SS/noarg.out_lint b/regress/man/SS/noarg.out_lint index ea550861..e051dcae 100644 --- a/regress/man/SS/noarg.out_lint +++ b/regress/man/SS/noarg.out_lint @@ -10,5 +10,5 @@ mandoc: noarg.in:30:2: ERROR: skipping end of block that is not open: RE mandoc: noarg.in:32:2: WARNING: line scope broken: UR breaks SS mandoc: noarg.in:35:2: WARNING: line scope broken: UE breaks SS mandoc: noarg.in:36:2: ERROR: skipping end of block that is not open: UE -mandoc: noarg.in:42:2: WARNING: fill mode already enabled, skipping: fi +mandoc: noarg.in:42:2: STYLE: fill mode already enabled, skipping: fi mandoc: noarg.in:45:1: WARNING: skipping blank line in line scope diff --git a/regress/man/TH/case.out_lint b/regress/man/TH/case.out_lint index c6e8a65e..b62a714c 100644 --- a/regress/man/TH/case.out_lint +++ b/regress/man/TH/case.out_lint @@ -1 +1 @@ -mandoc: case.in:2:8: WARNING: lower case character in document title: TH TH-case +mandoc: case.in:2:8: STYLE: lower case character in document title: TH TH-case diff --git a/regress/man/nf/dupe.out_lint b/regress/man/nf/dupe.out_lint index 1f4cb241..cbb1070a 100644 --- a/regress/man/nf/dupe.out_lint +++ b/regress/man/nf/dupe.out_lint @@ -1,2 +1,2 @@ -mandoc: dupe.in:8:2: WARNING: fill mode already enabled, skipping: fi -mandoc: dupe.in:15:2: WARNING: fill mode already disabled, skipping: nf +mandoc: dupe.in:8:2: STYLE: fill mode already enabled, skipping: fi +mandoc: dupe.in:15:2: STYLE: fill mode already disabled, skipping: nf diff --git a/regress/mdoc/Bd/blank.out_lint b/regress/mdoc/Bd/blank.out_lint index f5702bdc..b261432c 100644 --- a/regress/mdoc/Bd/blank.out_lint +++ b/regress/mdoc/Bd/blank.out_lint @@ -1,8 +1,8 @@ -mandoc: blank.in:13:1: WARNING: whitespace at end of input line -mandoc: blank.in:15:1: WARNING: whitespace at end of input line -mandoc: blank.in:17:1: WARNING: whitespace at end of input line -mandoc: blank.in:22:36: WARNING: whitespace at end of input line -mandoc: blank.in:23:37: WARNING: whitespace at end of input line -mandoc: blank.in:24:32: WARNING: whitespace at end of input line -mandoc: blank.in:31:8: WARNING: whitespace at end of input line +mandoc: blank.in:13:1: STYLE: whitespace at end of input line +mandoc: blank.in:15:1: STYLE: whitespace at end of input line +mandoc: blank.in:17:1: STYLE: whitespace at end of input line +mandoc: blank.in:22:36: STYLE: whitespace at end of input line +mandoc: blank.in:23:37: STYLE: whitespace at end of input line +mandoc: blank.in:24:32: STYLE: whitespace at end of input line +mandoc: blank.in:31:8: STYLE: whitespace at end of input line mandoc: blank.in:31:2: WARNING: empty block: Dl diff --git a/regress/mdoc/Dd/dupe.out_lint b/regress/mdoc/Dd/dupe.out_lint index faa1f835..72ccde41 100644 --- a/regress/mdoc/Dd/dupe.out_lint +++ b/regress/mdoc/Dd/dupe.out_lint @@ -1,3 +1,3 @@ mandoc: dupe.in:2:5: STYLE: Mdocdate missing: Dd August (OpenBSD) -mandoc: dupe.in:5:2: WARNING: duplicate prologue macro: Dd -mandoc: dupe.in:11:2: WARNING: duplicate prologue macro: Dd +mandoc: dupe.in:5:2: ERROR: duplicate prologue macro: Dd +mandoc: dupe.in:11:2: ERROR: duplicate prologue macro: Dd diff --git a/regress/mdoc/Dt/case.out_lint b/regress/mdoc/Dt/case.out_lint index 7a39ec2f..127afbfc 100644 --- a/regress/mdoc/Dt/case.out_lint +++ b/regress/mdoc/Dt/case.out_lint @@ -1 +1 @@ -mandoc: case.in:3:6: WARNING: lower case character in document title: Dt Dt-case +mandoc: case.in:3:6: STYLE: lower case character in document title: Dt Dt-case diff --git a/regress/mdoc/Dt/dupe.out_lint b/regress/mdoc/Dt/dupe.out_lint index 534a8eec..8ae9c61b 100644 --- a/regress/mdoc/Dt/dupe.out_lint +++ b/regress/mdoc/Dt/dupe.out_lint @@ -1,2 +1,2 @@ -mandoc: dupe.in:5:2: WARNING: duplicate prologue macro: Dt -mandoc: dupe.in:11:2: WARNING: skipping late title macro: Dt +mandoc: dupe.in:5:2: ERROR: duplicate prologue macro: Dt +mandoc: dupe.in:11:2: ERROR: skipping late title macro: Dt diff --git a/regress/mdoc/Dt/late.out_lint b/regress/mdoc/Dt/late.out_lint index 8c109bfb..eb022107 100644 --- a/regress/mdoc/Dt/late.out_lint +++ b/regress/mdoc/Dt/late.out_lint @@ -1,2 +1,2 @@ -mandoc: late.in:9:2: WARNING: skipping late title macro: Dt +mandoc: late.in:9:2: ERROR: skipping late title macro: Dt mandoc: late.in: WARNING: missing manual title, using UNTITLED: EOF diff --git a/regress/mdoc/Os/dupe.out_lint b/regress/mdoc/Os/dupe.out_lint index a0914e9d..63b9dfd2 100644 --- a/regress/mdoc/Os/dupe.out_lint +++ b/regress/mdoc/Os/dupe.out_lint @@ -1,9 +1,9 @@ mandoc: dupe.in:3:5: STYLE: operating system explicitly specified: Os NetBSD (NetBSD) mandoc: dupe.in:2:5: STYLE: Mdocdate found: Dd $Mdocdate: (NetBSD) mandoc: dupe.in:4:2: WARNING: prologue macros out of order: Dt after Os -mandoc: dupe.in:5:2: WARNING: duplicate prologue macro: Os +mandoc: dupe.in:5:2: ERROR: duplicate prologue macro: Os mandoc: dupe.in:5:5: STYLE: operating system explicitly specified: Os FreeBSD (NetBSD) mandoc: dupe.in:2:5: STYLE: Mdocdate found: Dd $Mdocdate: (NetBSD) -mandoc: dupe.in:11:2: WARNING: duplicate prologue macro: Os +mandoc: dupe.in:11:2: ERROR: duplicate prologue macro: Os mandoc: dupe.in:11:5: STYLE: operating system explicitly specified: Os OpenBSD (NetBSD) mandoc: dupe.in: STYLE: RCS id missing: (NetBSD) diff --git a/regress/mdoc/blank/comment.out_lint b/regress/mdoc/blank/comment.out_lint index abcab924..9e924f2a 100644 --- a/regress/mdoc/blank/comment.out_lint +++ b/regress/mdoc/blank/comment.out_lint @@ -1 +1 @@ -mandoc: comment.in:12:3: WARNING: bad comment style +mandoc: comment.in:12:3: STYLE: bad comment style diff --git a/regress/roff/args/man.out_lint b/regress/roff/args/man.out_lint index 5b74f59e..6d6bbd84 100644 --- a/regress/roff/args/man.out_lint +++ b/regress/roff/args/man.out_lint @@ -1,9 +1,9 @@ -mandoc: man.in:35:13: WARNING: whitespace at end of input line -mandoc: man.in:39:14: WARNING: whitespace at end of input line -mandoc: man.in:43:15: WARNING: whitespace at end of input line -mandoc: man.in:83:25: WARNING: whitespace at end of input line -mandoc: man.in:87:26: WARNING: whitespace at end of input line -mandoc: man.in:91:27: WARNING: whitespace at end of input line -mandoc: man.in:104:5: WARNING: unterminated quoted argument -mandoc: man.in:107:9: WARNING: unterminated quoted argument +mandoc: man.in:35:13: STYLE: whitespace at end of input line +mandoc: man.in:39:14: STYLE: whitespace at end of input line +mandoc: man.in:43:15: STYLE: whitespace at end of input line +mandoc: man.in:83:25: STYLE: whitespace at end of input line +mandoc: man.in:87:26: STYLE: whitespace at end of input line +mandoc: man.in:91:27: STYLE: whitespace at end of input line +mandoc: man.in:104:5: STYLE: unterminated quoted argument +mandoc: man.in:107:9: STYLE: unterminated quoted argument mandoc: man.in:131:1: ERROR: escaped character not allowed in a name: IB\( diff --git a/regress/roff/args/mdoc.out_lint b/regress/roff/args/mdoc.out_lint index d28277a1..f4715ba2 100644 --- a/regress/roff/args/mdoc.out_lint +++ b/regress/roff/args/mdoc.out_lint @@ -1,13 +1,13 @@ -mandoc: mdoc.in:38:13: WARNING: whitespace at end of input line -mandoc: mdoc.in:42:14: WARNING: whitespace at end of input line -mandoc: mdoc.in:46:15: WARNING: whitespace at end of input line -mandoc: mdoc.in:86:25: WARNING: whitespace at end of input line -mandoc: mdoc.in:90:26: WARNING: whitespace at end of input line -mandoc: mdoc.in:94:27: WARNING: whitespace at end of input line -mandoc: mdoc.in:102:9: WARNING: unterminated quoted argument -mandoc: mdoc.in:103:13: WARNING: unterminated quoted argument -mandoc: mdoc.in:107:10: WARNING: unterminated quoted argument -mandoc: mdoc.in:108:14: WARNING: unterminated quoted argument -mandoc: mdoc.in:112:11: WARNING: unterminated quoted argument -mandoc: mdoc.in:113:15: WARNING: unterminated quoted argument +mandoc: mdoc.in:38:13: STYLE: whitespace at end of input line +mandoc: mdoc.in:42:14: STYLE: whitespace at end of input line +mandoc: mdoc.in:46:15: STYLE: whitespace at end of input line +mandoc: mdoc.in:86:25: STYLE: whitespace at end of input line +mandoc: mdoc.in:90:26: STYLE: whitespace at end of input line +mandoc: mdoc.in:94:27: STYLE: whitespace at end of input line +mandoc: mdoc.in:102:9: STYLE: unterminated quoted argument +mandoc: mdoc.in:103:13: STYLE: unterminated quoted argument +mandoc: mdoc.in:107:10: STYLE: unterminated quoted argument +mandoc: mdoc.in:108:14: STYLE: unterminated quoted argument +mandoc: mdoc.in:112:11: STYLE: unterminated quoted argument +mandoc: mdoc.in:113:15: STYLE: unterminated quoted argument mandoc: mdoc.in:121:1: ERROR: escaped character not allowed in a name: Fl\( diff --git a/regress/roff/args/roff.out_lint b/regress/roff/args/roff.out_lint index d6817400..5ac03917 100644 --- a/regress/roff/args/roff.out_lint +++ b/regress/roff/args/roff.out_lint @@ -1,16 +1,16 @@ -mandoc: roff.in:31:15: WARNING: whitespace at end of input line -mandoc: roff.in:33:16: WARNING: whitespace at end of input line -mandoc: roff.in:35:17: WARNING: whitespace at end of input line -mandoc: roff.in:55:27: WARNING: whitespace at end of input line -mandoc: roff.in:57:28: WARNING: whitespace at end of input line -mandoc: roff.in:59:29: WARNING: whitespace at end of input line -mandoc: roff.in:63:7: WARNING: unterminated quoted argument -mandoc: roff.in:64:11: WARNING: unterminated quoted argument -mandoc: roff.in:66:7: WARNING: unterminated quoted argument -mandoc: roff.in:66:12: WARNING: whitespace at end of input line -mandoc: roff.in:67:11: WARNING: unterminated quoted argument -mandoc: roff.in:67:16: WARNING: whitespace at end of input line -mandoc: roff.in:69:7: WARNING: unterminated quoted argument -mandoc: roff.in:69:13: WARNING: whitespace at end of input line -mandoc: roff.in:70:11: WARNING: unterminated quoted argument -mandoc: roff.in:70:17: WARNING: whitespace at end of input line +mandoc: roff.in:31:15: STYLE: whitespace at end of input line +mandoc: roff.in:33:16: STYLE: whitespace at end of input line +mandoc: roff.in:35:17: STYLE: whitespace at end of input line +mandoc: roff.in:55:27: STYLE: whitespace at end of input line +mandoc: roff.in:57:28: STYLE: whitespace at end of input line +mandoc: roff.in:59:29: STYLE: whitespace at end of input line +mandoc: roff.in:63:7: STYLE: unterminated quoted argument +mandoc: roff.in:64:11: STYLE: unterminated quoted argument +mandoc: roff.in:66:7: STYLE: unterminated quoted argument +mandoc: roff.in:66:12: STYLE: whitespace at end of input line +mandoc: roff.in:67:11: STYLE: unterminated quoted argument +mandoc: roff.in:67:16: STYLE: whitespace at end of input line +mandoc: roff.in:69:7: STYLE: unterminated quoted argument +mandoc: roff.in:69:13: STYLE: whitespace at end of input line +mandoc: roff.in:70:11: STYLE: unterminated quoted argument +mandoc: roff.in:70:17: STYLE: whitespace at end of input line diff --git a/regress/roff/nr/escname.out_lint b/regress/roff/nr/escname.out_lint index 00c1b5b2..a2dabebe 100644 --- a/regress/roff/nr/escname.out_lint +++ b/regress/roff/nr/escname.out_lint @@ -1,4 +1,4 @@ mandoc: escname.in:9:5: ERROR: escaped character not allowed in a name: first\e mandoc: escname.in:12:5: ERROR: escaped character not allowed in a name: first\e mandoc: escname.in:18:13: WARNING: invalid escape sequence: \n[second -mandoc: escname.in:18:12: WARNING: whitespace at end of input line +mandoc: escname.in:18:12: STYLE: whitespace at end of input line diff --git a/regress/roff/string/name.out_lint b/regress/roff/string/name.out_lint index 39260cde..795f5e80 100644 --- a/regress/roff/string/name.out_lint +++ b/regress/roff/string/name.out_lint @@ -2,16 +2,16 @@ mandoc: name.in:11:5: ERROR: escaped character not allowed in a name: bs\e mandoc: name.in:13:5: ERROR: escaped character not allowed in a name: bl\ mandoc: name.in:16:29: WARNING: invalid escape sequence: \*[norm mandoc: name.in:16:29: WARNING: undefined string, using "": norm -mandoc: name.in:16:28: WARNING: whitespace at end of input line +mandoc: name.in:16:28: STYLE: whitespace at end of input line mandoc: name.in:18:7: WARNING: undefined string, using "": quot -mandoc: name.in:18:6: WARNING: whitespace at end of input line +mandoc: name.in:18:6: STYLE: whitespace at end of input line mandoc: name.in:26:6: WARNING: undefined string, using "": bse -mandoc: name.in:26:5: WARNING: whitespace at end of input line +mandoc: name.in:26:5: STYLE: whitespace at end of input line mandoc: name.in:28:5: WARNING: undefined string, using "": bs -mandoc: name.in:28:4: WARNING: whitespace at end of input line +mandoc: name.in:28:4: STYLE: whitespace at end of input line mandoc: name.in:32:7: WARNING: undefined string, using "": bl e -mandoc: name.in:32:6: WARNING: whitespace at end of input line +mandoc: name.in:32:6: STYLE: whitespace at end of input line mandoc: name.in:34:6: WARNING: undefined string, using "": ble -mandoc: name.in:34:5: WARNING: whitespace at end of input line +mandoc: name.in:34:5: STYLE: whitespace at end of input line mandoc: name.in:36:5: WARNING: undefined string, using "": bl -mandoc: name.in:36:4: WARNING: whitespace at end of input line +mandoc: name.in:36:4: STYLE: whitespace at end of input line |