diff options
author | mihaylov <mihaylov@epfl.ch> | 2007-02-05 14:40:44 +0000 |
---|---|---|
committer | mihaylov <mihaylov@epfl.ch> | 2007-02-05 14:40:44 +0000 |
commit | 15fc37931ac45bb530e3f09618da7de870f43ec9 (patch) | |
tree | e89f12ae598e1f17d01fd0311fceebfbe6d20d2e /src | |
parent | fd8dff6dd8148e83d24f3be3f8b22b7f4b253760 (diff) | |
download | scala-15fc37931ac45bb530e3f09618da7de870f43ec9.tar.gz scala-15fc37931ac45bb530e3f09618da7de870f43ec9.tar.bz2 scala-15fc37931ac45bb530e3f09618da7de870f43ec9.zip |
Honour the -nowarn flag
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/Main.scala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/Main.scala b/src/compiler/scala/tools/nsc/Main.scala index 81b0696a3b..c5453fc167 100644 --- a/src/compiler/scala/tools/nsc/Main.scala +++ b/src/compiler/scala/tools/nsc/Main.scala @@ -40,7 +40,8 @@ object Main extends AnyRef with EvalLoop { def process(args: Array[String]): unit = { reporter = new ConsoleReporter(); val command = new CompilerCommand(List.fromArray(args), error, false); - reporter.prompt = command.settings.prompt.value; + reporter.prompt = command.settings.prompt.value + reporter.nowarn = command.settings.nowarnings.value if (command.settings.version.value) reporter.info(null, versionMsg, true) else if (command.settings.help.value) |