Author: marek
Date: 2005-03-04 10:03:31 -0500 (Fri, 04 Mar 2005)
New Revision: 41442
Modified:
trunk/mcs/mcs/ChangeLog
trunk/mcs/mcs/cs-tokenizer.cs
trunk/mcs/mcs/report.cs
Log:
2005-03-04 Marek Safar <[EMAIL PROTECTED]>
* cs-tokenizer.cs (PreProcessPragma): Add warning 1633, 1635.
* report.cs (warning_ignore_table): Made public.
Modified: trunk/mcs/mcs/ChangeLog
===================================================================
--- trunk/mcs/mcs/ChangeLog 2005-03-04 14:14:10 UTC (rev 41441)
+++ trunk/mcs/mcs/ChangeLog 2005-03-04 15:03:31 UTC (rev 41442)
@@ -1,3 +1,9 @@
+2005-03-04 Marek Safar <[EMAIL PROTECTED]>
+
+ * cs-tokenizer.cs (PreProcessPragma): Add warning 1633, 1635.
+
+ * report.cs (warning_ignore_table): Made public.
+
2005-03-04 Raja R Harinath <[EMAIL PROTECTED]>
Fix #73282.
Modified: trunk/mcs/mcs/cs-tokenizer.cs
===================================================================
--- trunk/mcs/mcs/cs-tokenizer.cs 2005-03-04 14:14:10 UTC (rev 41441)
+++ trunk/mcs/mcs/cs-tokenizer.cs 2005-03-04 15:03:31 UTC (rev 41442)
@@ -1329,7 +1329,10 @@
if (arg.StartsWith (w_restore)) {
int[] codes = ParseNumbers (arg.Substring
(w_restore.Length));
+ Hashtable w_table = Report.warning_ignore_table;
foreach (int code in codes) {
+ if (w_table != null && w_table.Contains
(code))
+ Report.Warning (1635, 1,
Location, "Cannot restore warning 'CS{0:0000}' because it was disabled
globally", code);
Report.RegisterWarningRegion
(Location).WarningEnable (Location, code);
}
return;
@@ -1339,6 +1342,8 @@
Report.Warning (1634, 1, Location, "Expected
disable or restore");
return;
}
+
+ Report.Warning (1633, 1, Location, "Unrecognized
#pragma directive");
}
int[] ParseNumbers (string text)
Modified: trunk/mcs/mcs/report.cs
===================================================================
--- trunk/mcs/mcs/report.cs 2005-03-04 14:14:10 UTC (rev 41441)
+++ trunk/mcs/mcs/report.cs 2005-03-04 15:03:31 UTC (rev 41442)
@@ -59,7 +59,7 @@
//
// Keeps track of the warnings that we are ignoring
//
- static Hashtable warning_ignore_table;
+ public static Hashtable warning_ignore_table;
static Hashtable warning_regions_table;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches