8000 added Warning options to the list of scala3 compiler options · rssh/scala.github.com@6ea617d · GitHub
[go: up one dir, main page]

Skip to content

Commit 6ea617d

Browse files
authored
added Warning options to the list of scala3 compiler options
1 parent 4a14348 commit 6ea617d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

_overviews/scala3-migration/options-new.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,21 @@ The current page only contains the options that were added in Scala 3.0.x.
4040
| `-Vprofile-sorted-by:<column-name>` | Show metrics about sources and internal representations sorted by given column name. |
4141
| `-Vprofile-details N` | Like -Vprofile, but also show metrics about sources and internal representations of the N most complex methods |
4242

43+
## Warning settings
44+
45+
| 3.3.x | description |
46+
|-|-|
47+
| `-Wunused:imports` | Warn about unused imports |
48+
| `-Wunused:privates` | Warn about unused private definitions |
49+
| `-Wunused:locals` | Warn about unused local definitions |
50+
| `-Wunused:explicits` | Warn about unused explicit parameters |
51+
| `-Wunused:implicits` | Warn about unused implicit parameters |
52+
| `-Wunused:params` | Warn about all unused parameters |
53+
| `-Wunused:all` | Enable all warnings |
54+
| `-Wvalue-discard` | Warn about discarding values |
55+
| `-Wnonunit-statement` | Warn when block statements are non-Unit expressions (added in 3.3.1) |
56+
57+
4358
## Advanced settings
4459

4560
| 3.0.x | description |

0 commit comments

Comments
 (0)
0