From 6ea617d7722e5e057dfc7bfc35e065d173022868 Mon Sep 17 00:00:00 2001 From: Ruslan Shevchenko Date: Tue, 30 Jan 2024 23:13:03 +0200 Subject: [PATCH 1/2] added Warning options to the list of scala3 compiler options --- _overviews/scala3-migration/options-new.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/_overviews/scala3-migration/options-new.md b/_overviews/scala3-migration/options-new.md index 61fd71c0e..a670f47e8 100644 --- a/_overviews/scala3-migration/options-new.md +++ b/_overviews/scala3-migration/options-new.md @@ -40,6 +40,21 @@ The current page only contains the options that were added in Scala 3.0.x. | `-Vprofile-sorted-by:` | 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 | From 77a850ada2ad0b06987fe775a28ebeb74e696bf7 Mon Sep 17 00:00:00 2001 From: Ruslan Shevchenko Date: Mon, 11 Mar 2024 19:40:07 +0200 Subject: [PATCH 2/2] Update options-new.md Deleted options which was present in 2.x --- _overviews/scala3-migration/options-new.md | 7 ------- 1 file changed, 7 deletions(-) diff --git a/_overviews/scala3-migration/options-new.md b/_overviews/scala3-migration/options-new.md index 2f2ff2537..37da1d649 100644 --- a/_overviews/scala3-migration/options-new.md +++ b/_overviews/scala3-migration/options-new.md @@ -44,14 +44,7 @@ The current page only contains the options that were added in Scala 3.0.x. | 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) |