File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
compiler/src/dotty/tools/dotc/profile Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
package dotty .tools .dotc .profile
2
2
3
+ import scala .annotation .*
3
4
import scala .language .unsafeNulls
4
5
5
6
import java .io .{FileWriter , PrintWriter }
@@ -123,6 +124,7 @@ private [profile] class RealProfiler(reporter : ProfileReporter)(using Context)
123
124
}
124
125
private def readHeapUsage () = RealProfiler .memoryMx.getHeapMemoryUsage.getUsed
125
126
127
+ @ nowarn
126
128
private def doGC : Unit = {
127
129
System .gc()
128
130
System .runFinalization()
Original file line number Diff line number Diff line change @@ -169,9 +169,10 @@ object Build {
169
169
" -feature" ,
170
170
" -deprecation" ,
171
171
" -unchecked" ,
172
- " -Xfatal-warnings" ,
172
+ " -Wconf:cat=deprecation&msg=Unsafe:s" ,
173
+ " -Werror" ,
173
174
" -encoding" , " UTF8" ,
174
- " -language:implicitConversions"
175
+ " -language:implicitConversions" ,
175
176
),
176
177
177
178
(Compile / compile / javacOptions) ++= Seq (" -Xlint:unchecked" , " -Xlint:deprecation" ),
You can’t perform that action at this time.
0 commit comments