Author: marek
Date: 2005-07-25 10:06:23 -0400 (Mon, 25 Jul 2005)
New Revision: 47649

Modified:
   trunk/mcs/mcs/ChangeLog
   trunk/mcs/mcs/class.cs
Log:
2005-07-25  Marek Safar  <[EMAIL PROTECTED]>

        * class.cs (TypeContainer.VerifyMembers): Be compatible in warning 169.

Modified: trunk/mcs/mcs/ChangeLog
===================================================================
--- trunk/mcs/mcs/ChangeLog     2005-07-25 13:54:18 UTC (rev 47648)
+++ trunk/mcs/mcs/ChangeLog     2005-07-25 14:06:23 UTC (rev 47649)
@@ -1,5 +1,9 @@
 2005-07-25  Marek Safar  <[EMAIL PROTECTED]>
 
+       * class.cs (TypeContainer.VerifyMembers): Be compatible in warning 169.
+
+2005-07-25  Marek Safar  <[EMAIL PROTECTED]>
+
        * class.cs (MethodData.Define): Check whether accessor implementing
        interface is public.
 

Modified: trunk/mcs/mcs/class.cs
===================================================================
--- trunk/mcs/mcs/class.cs      2005-07-25 13:54:18 UTC (rev 47648)
+++ trunk/mcs/mcs/class.cs      2005-07-25 14:06:23 UTC (rev 47649)
@@ -2071,9 +2071,15 @@
                                                if (!f.IsUsed){
                                                        if ((f.caching_flags & 
Flags.IsAssigned) == 0)
                                                                Report.Warning 
(169, 3, f.Location, "The private field `{0}' is never used", 
f.GetSignatureForError ());
-                                                       else
-                                                               Report.Warning 
(414, 3, f.Location, "The private field `{0}' is assigned but its value is 
never used",
+                                                       else {
+#if NET_2_0
+                                                               const int 
error_code = 414;
+#else
+                                                               const int 
error_code = 169;
+#endif
+                                                               Report.Warning 
(error_code, 3, f.Location, "The private field `{0}' is assigned but its value 
is never used",
                                                                        
f.GetSignatureForError ());
+                                                       }
                                                        continue;
                                                }
                                                

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to