Skip to content

Commit 2f95961

Browse files
committed
clean up build for Scala 3.3.5
1 parent 4da79c3 commit 2f95961

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

build.sbt

+5-6
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,14 @@ lazy val collectionContrib = crossProject(JVMPlatform, JSPlatform, NativePlatfor
1818
name := "scala-collection-contrib",
1919
versionPolicyIntention := Compatibility.None,
2020
scalaModuleAutomaticModuleName := Some("scala.collection.contrib"),
21+
Compile / compile / scalacOptions ++= Seq(
22+
"-Werror",
23+
"-Wnonunit-statement",
24+
"-Wconf:origin=scala.collection.IterableOps.toIterable:s", // internal usage; annotating @nowarn is clutter
25+
),
2126
Compile / compile / scalacOptions ++= {
2227
CrossVersion.partialVersion(scalaVersion.value) match {
2328
case Some((2, _)) => Seq(
24-
"-Wconf:origin=scala.collection.IterableOps.toIterable:s", // internal usage; annotating @nowarn is clutter
25-
"-Werror",
26-
"-Wnonunit-statement",
2729
"-Wopt",
2830
"-opt:inline:<sources>",
2931
"-opt:inline:scala.util.package$chaining$,scala.util.ChainingSyntax,scala.util.ChainingOps$",
@@ -32,10 +34,7 @@ lazy val collectionContrib = crossProject(JVMPlatform, JSPlatform, NativePlatfor
3234
"-Xsource:3-cross",
3335
)
3436
case _ => Seq(
35-
"-Wconf:cat=deprecation:s", // Scala 3 lacks origin, src arrives in 3.3.5 & 3.5
3637
"-Wconf:id=E175:s",
37-
"-Werror",
38-
"-Wnonunit-statement", // warns on uni-limbed if
3938
)
4039
}
4140
},

0 commit comments

Comments
 (0)