X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fmcs%2Freport.cs;h=2a3fc301f7b7fc8f3489ecba22acbfa4034536e8;hb=f282c09a4f474c0994bf739e0b300043fd342b80;hp=e76fc887c1bf184ef829147b785bd2663b016f66;hpb=591b660e931707c8d70d2d209958b113ef982a03;p=mono.git diff --git a/mcs/mcs/report.cs b/mcs/mcs/report.cs index e76fc887c1b..2a3fc301f7b 100644 --- a/mcs/mcs/report.cs +++ b/mcs/mcs/report.cs @@ -123,6 +123,18 @@ namespace Mono.CSharp { Warning (code, Location.Null, text); } + static public void Warning (int code, int level, string text) + { + if (RootContext.WarningLevel >= level) + Warning (code, Location.Null, text); + } + + static public void Warning (int code, int level, Location l, string text) + { + if (RootContext.WarningLevel >= level) + Warning (code, l, text); + } + static public void Error (int code, string text) { string msg = String.Format ("error CS{0:0000}: {1}", code, text); @@ -181,7 +193,7 @@ namespace Mono.CSharp { if (first) first = false; else - sb.Append (","); + sb.Append (", "); if (arg == null) sb.Append ("null"); else if (arg is ICollection) @@ -206,7 +218,7 @@ namespace Mono.CSharp { if (first) first = false; else - sb.Append (","); + sb.Append (", "); sb.Append (o); }