Skip to content

Commit 553fdda

Browse files
authored
Merge pull request scala#9875 from SethTisue/warning-noise-2.12
2 parents c81c427 + 955ed27 commit 553fdda

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

build.sbt

+3
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,8 @@ lazy val commonSettings = instanceSettings ++ clearSourceAndResourceDirectories
168168
(run / fork) := true,
169169
(run / connectInput) := true,
170170
(Compile / scalacOptions) += "-Ywarn-unused:imports",
171+
// work around https://github.com/scala/bug/issues/11534
172+
Compile / scalacOptions += "-Wconf:cat=unchecked&msg=The outer reference in this type test cannot be checked at run time.:s",
171173
(Compile / doc / scalacOptions) ++= Seq(
172174
"-doc-footer", "epfl",
173175
"-diagrams",
@@ -606,6 +608,7 @@ lazy val partest = configureAsSubproject(project)
606608
.settings(
607609
name := "scala-partest",
608610
description := "Scala Compiler Testing Tool",
611+
Compile / javacOptions += "-XDenableSunApiLintControl",
609612
libraryDependencies ++= List(testInterfaceDep, diffUtilsDep, junitDep),
610613
pomDependencyExclusions ++= List((organization.value, "scala-repl-jline-embedded"), (organization.value, "scala-compiler-doc")),
611614
fixPom(

src/partest/scala/tools/partest/nest/UnsafeAccess.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
import java.lang.reflect.Field;
1616

17-
@SuppressWarnings("unsafe")
17+
@SuppressWarnings("sunapi") // also requires passing -XDenableSunApiLintControl to javac
1818
public class UnsafeAccess {
1919
public final static sun.misc.Unsafe U;
2020

0 commit comments

Comments
 (0)