Skip to content

Commit

Permalink
added Warning options to the list of scala3 compiler options
Browse files Browse the repository at this point in the history
  • Loading branch information
rssh authored Jan 30, 2024
1 parent 4a14348 commit 6ea617d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions _overviews/scala3-migration/options-new.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,21 @@ The current page only contains the options that were added in Scala 3.0.x.
| `-Vprofile-sorted-by:<column-name>` | Show metrics about sources and internal representations sorted by given column name. |
| `-Vprofile-details N` | Like -Vprofile, but also show metrics about sources and internal representations of the N most complex methods |

## Warning settings

| 3.3.x | description |
|-|-|
| `-Wunused:imports` | Warn about unused imports |
| `-Wunused:privates` | Warn about unused private definitions |
| `-Wunused:locals` | Warn about unused local definitions |
| `-Wunused:explicits` | Warn about unused explicit parameters |
| `-Wunused:implicits` | Warn about unused implicit parameters |
| `-Wunused:params` | Warn about all unused parameters |
| `-Wunused:all` | Enable all warnings |
| `-Wvalue-discard` | Warn about discarding values |
| `-Wnonunit-statement` | Warn when block statements are non-Unit expressions (added in 3.3.1) |


## Advanced settings

| 3.0.x | description |
Expand Down

0 comments on commit 6ea617d

Please sign in to comment.