Skip to content

Commit 0f54453

Browse files
Merge pull request #176 from lenguyenthanh/add-wall
Add -Wall option
2 parents 2963ce1 + 89d2704 commit 0f54453

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

lib/src/main/scala/org/typelevel/scalacoptions/ScalaVersion.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,10 @@ object ScalaVersion {
4949
val V3_3_0 = ScalaVersion(3, 3, 0)
5050
val V3_3_1 = ScalaVersion(3, 3, 1)
5151
val V3_3_3 = ScalaVersion(3, 3, 3)
52+
val V3_3_5 = ScalaVersion(3, 3, 5)
5253
val V3_4_0 = ScalaVersion(3, 4, 0)
5354
val V3_5_0 = ScalaVersion(3, 5, 0)
55+
val V3_5_2 = ScalaVersion(3, 5, 2)
5456

5557
private val versionRegex = raw"""(\d+)\.(\d+)\.(\d+)(?:-.*)?""".r
5658
def fromString(version: String): Either[IllegalArgumentException, ScalaVersion] =

lib/src/main/scala/org/typelevel/scalacoptions/ScalacOptions.scala

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -838,6 +838,15 @@ private[scalacoptions] trait ScalacOptions {
838838
val warnSafeInit =
839839
warnOption("safe-init", version => version >= V3_5_0)
840840

841+
/** Enables all warnings. More info:
842+
*
843+
* [[https://github.com/scala/scala3/pull/20577]]
844+
*
845+
* Added in 3.5.2, back ported to 3.3.5
846+
*/
847+
val warnAll =
848+
warnOption("all", version => version.isAtLeast(V3_5_2) || version.isBetween(V3_3_5, V3_4_0))
849+
841850
/** Unused warning options (-Wunused:)
842851
*/
843852
val warnUnusedOptions: Set[ScalacOption] = ListSet(

0 commit comments

Comments
 (0)