summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/Global.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-04-15 18:30:58 +0000
committerPaul Phillips <paulp@improving.org>2010-04-15 18:30:58 +0000
commit4fb3473182262b7cce33406ba7d0701e6622e3c3 (patch)
treeba2ce46bf92c86cf36095cb0c3b4da30c4d8a305 /src/compiler/scala/tools/nsc/Global.scala
parent348271c8b27af1c29f7705ea2853c934492ee327 (diff)
downloadscala-4fb3473182262b7cce33406ba7d0701e6622e3c3.tar.gz
scala-4fb3473182262b7cce33406ba7d0701e6622e3c3.tar.bz2
scala-4fb3473182262b7cce33406ba7d0701e6622e3c3.zip
Removed a bunch of -Y warning options.
back in the form of a compiler plugin. Also promoted -Yfatal-warnings to -Xfatal-warnings: this is key to writing tests which involve warnings and should be at least semi-supported. Closes #3300, no review.
Diffstat (limited to 'src/compiler/scala/tools/nsc/Global.scala')
-rw-r--r--src/compiler/scala/tools/nsc/Global.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/Global.scala b/src/compiler/scala/tools/nsc/Global.scala
index 16bff5d399..b43908c4f9 100644
--- a/src/compiler/scala/tools/nsc/Global.scala
+++ b/src/compiler/scala/tools/nsc/Global.scala
@@ -137,7 +137,7 @@ class Global(var settings: Settings, var reporter: Reporter) extends SymbolTable
def error(msg: String) = reporter.error(NoPosition, msg)
def warning(msg: String) =
- if (settings.Ywarnfatal.value) reporter.error(NoPosition, msg)
+ if (settings.Xwarnfatal.value) reporter.error(NoPosition, msg)
else reporter.warning(NoPosition, msg)
def inform(msg: String) = reporter.info(NoPosition, msg, true)
def inform[T](msg: String, value: T): T = { inform(msg+value); value }