fix: Remove -Wconf:cat=unused-nowarn:s

**Problem**
Currently the following warning shows up while compiling metabuild:

[warn] Failed to parse `-Wconf` configuration: cat=unused-nowarn:s
[warn] unknown category: unused-nowarn

-Wconf:cat=unused-nowarn in general was added as a Scala 2.12 of
falsely warning about pure expression not doing anything in the macro.

**Solution**
We should be able to remove the -Wconf flag in sbt 2.x.
This commit is contained in:
Eugene Yokota 2024-12-01 18:04:35 -05:00
parent 88f900e522
commit 56e83977e9
1 changed files with 0 additions and 9 deletions

View File

@ -985,15 +985,6 @@ object Defaults extends BuildCommon {
) ++ old
else old
},
scalacOptions := {
val old = scalacOptions.value
if (
sbtPlugin.value && VersionNumber(scalaVersion.value)
.matchesSemVer(SemanticSelector("=2.12 >=2.12.13"))
)
old ++ Seq("-Wconf:cat=unused-nowarn:s", "-Xsource:3")
else old
},
persistJarClasspath :== true,
classpathEntryDefinesClassVF := {
val cache =