summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/settings/Warnings.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/scala/tools/nsc/settings/Warnings.scala')
-rw-r--r--src/compiler/scala/tools/nsc/settings/Warnings.scala14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/compiler/scala/tools/nsc/settings/Warnings.scala b/src/compiler/scala/tools/nsc/settings/Warnings.scala
index d678fc60a8..d6d77278ab 100644
--- a/src/compiler/scala/tools/nsc/settings/Warnings.scala
+++ b/src/compiler/scala/tools/nsc/settings/Warnings.scala
@@ -39,13 +39,9 @@ trait Warnings {
BooleanSetting("-Xlint", "Enable recommended additional warnings.")
withPostSetHook (_ => lintWarnings foreach (_.value = true))
)
-
- /*val warnEverything = */ (
+ val warnEverything = (
BooleanSetting("-Ywarn-all", "Enable all -Y warnings.")
- withPostSetHook { _ =>
- lint.value = true
- allWarnings foreach (_.value = true)
- }
+ withPostSetHook (_ => lintWarnings foreach (_.value = true))
)
// Individual warnings.
@@ -61,7 +57,7 @@ trait Warnings {
val warnInferAny = BooleanSetting ("-Ywarn-infer-any", "Warn when a type argument is inferred to be `Any`.")
// Backward compatibility.
- def Xwarnfatal = fatalWarnings // used by sbt
- // def Xchecknull = warnSelectNullable
- // def Ywarndeadcode = warnDeadCode
+ def Xwarnfatal = fatalWarnings
+ def Xchecknull = warnSelectNullable
+ def Ywarndeadcode = warnDeadCode
}