Skip to content

Commit

Permalink
fix -Wconf to match new semantics
Browse files Browse the repository at this point in the history
Override order reversed, see also https://github.com/scala/scala/releases
  • Loading branch information
raboof committed Jan 3, 2025
1 parent bcf1c27 commit 8ab0d19
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions project/PekkoDisciplinePlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,10 @@ object PekkoDisciplinePlugin extends AutoPlugin {
"pekko-stream-tests-tck",
"pekko-testkit")

lazy val defaultScalaOptions = Def.setting(CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, 12)) => "-Wconf:cat=unused-nowarn:s,any:e"
case _ => "-Wconf:cat=unused-nowarn:s,cat=other-shadowing:s,any:e"
lazy val defaultScalaOptions = Def.setting(CrossVersion.partialVersion(scalaVersion.value).get match {
case (3, 3) => "-Wconf:cat=unused-nowarn:s,cat=other-shadowing:s,any:e"
case (2, 13) => "-Wconf:any:e,cat=unused-nowarn:s,cat=other-shadowing:s"
case (2, 12) => "-Wconf:cat=unused-nowarn:s,any:e"
})

lazy val nowarnSettings = Seq(
Expand Down

0 comments on commit 8ab0d19

Please sign in to comment.