Skip to content

Commit

Permalink
Do not use -Xfatal-warnings with Scala 3
Browse files Browse the repository at this point in the history
It fails the build because of the deprecated generic predicates.
  • Loading branch information
fthomas committed Nov 21, 2022
1 parent 3b55def commit 86f678d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -416,12 +416,12 @@ lazy val compileSettings = Def.settings(
"-feature",
"-language:existentials,experimental.macros,higherKinds,implicitConversions",
"-unchecked",
"-Xfatal-warnings"
),
scalacOptions ++= {
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, minor)) if minor >= 12 =>
Seq(
"-Xfatal-warnings",
"-Xlint:-unused,_",
"-Ywarn-numeric-widen",
"-Ywarn-value-discard",
Expand Down

0 comments on commit 86f678d

Please sign in to comment.