File tree 1 file changed +4
-8
lines changed
compiler/src/dotty/tools/dotc/reporting 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -154,14 +154,10 @@ abstract class Reporter extends interfaces.ReporterResult {
154
154
val key = w.enablingOption.name
155
155
addUnreported(key, 1 )
156
156
case _ =>
157
- // conditional warnings that are not enabled are not fatal
158
- val d = dia match
159
- case w : Warning if ctx.settings.XfatalWarnings .value => w.toError
160
- case _ => dia
161
- if ! isHidden(d) then // avoid isHidden test for summarized warnings so that message is not forced
162
- markReported(d)
163
- withMode(Mode .Printing )(doReport(d))
164
- d match {
157
+ if ! isHidden(dia) then // avoid isHidden test for summarized warnings so that message is not forced
158
+ markReported(dia)
159
+ withMode(Mode .Printing )(doReport(dia))
160
+ dia match {
165
161
case w : Warning =>
166
162
warnings = w :: warnings
167
163
_warningCount += 1
You can’t perform that action at this time.
0 commit comments