diff options
author | jfrijters <jfrijters> | 2011-11-27 15:29:56 +0400 |
---|---|---|
committer | jfrijters <jfrijters> | 2011-11-27 15:29:56 +0400 |
commit | 99a96a2a798e95fd1c9a274669ca98a4a1c0831b (patch) | |
tree | bcc39b381e5ff3ca0c7d55db74b9d8e487d10eec | |
parent | 927e71c45d65d9d1739e87eb4e24647b680b10dd (diff) |
Informational messages should not be treated as error when -warnaserror is specified. Fix for #3443377.
-rw-r--r-- | ikvmc/CompilerClassLoader.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ikvmc/CompilerClassLoader.cs b/ikvmc/CompilerClassLoader.cs index ee5aa7ac..d9bfb6c8 100644 --- a/ikvmc/CompilerClassLoader.cs +++ b/ikvmc/CompilerClassLoader.cs @@ -3671,11 +3671,11 @@ namespace IKVM.Internal throw new InvalidProgramException(); } bool error = msgId >= Message.StartErrors - || options.warnaserror + || (options.warnaserror && msgId >= Message.StartWarnings) || options.errorWarnings.ContainsKey(key) || options.errorWarnings.ContainsKey(((int)msgId).ToString()); Console.Error.Write("{0} IKVMC{1:D4}: ", error ? "Error" : msgId < Message.StartWarnings ? "Note" : "Warning", (int)msgId); - if (error && msgId < Message.StartErrors) + if (error && Message.StartWarnings <= msgId && msgId < Message.StartErrors) { Console.Error.Write("Warning as Error: "); } |