Skip to content

Commit

Permalink
Add re-introduced unused/discard warnings for scala >3.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
amumurst committed May 25, 2023
1 parent 4dc8997 commit e26e8d3
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,20 @@ object TypelevelSettingsPlugin extends AutoPlugin {

val warningsDotty = Seq.empty

val warnings33 = Seq(
"-Wunused:implicits",
"-Wunused:explicits",
"-Wunused:imports",
"-Wunused:locals",
"-Wunused:params",
"-Wunused:privates",
"-Wvalue-discard"
)

scalaVersion.value match {
case V(V(3, minor, _, _)) if minor >= 3 =>
warnings33

case V(V(3, _, _, _)) =>
warningsDotty

Expand Down

0 comments on commit e26e8d3

Please sign in to comment.