[Mono-devel-list] Warnings building mcs/mcs

Nick Drochak ndrochak at gol.com
Sun Jan 4 01:23:28 EST 2004


Hi. Here's a simple patch for eliminating a couple of warnings in mcs/mcs
(sorry about the formatting).  OK to commit this?

Index: attribute.cs
===================================================================
RCS file: /cvs/public/mcs/mcs/attribute.cs,v
retrieving revision 1.104
diff -u -r1.104 attribute.cs
--- attribute.cs        3 Jan 2004 23:07:42 -0000       1.104
+++ attribute.cs        4 Jan 2004 06:00:53 -0000
@@ -946,7 +946,7 @@

                                                try {
                                                        ((TypeBuilder)
builder).SetCustomAttribute (cb);
-                                               } catch
(System.ArgumentException e) {
+                                               } catch
(System.ArgumentException) {
                                                        Report.Warning (
                                                                -21, loc,
                                                "The CharSet named property
on StructLayout\n"+
@@ -962,7 +962,7 @@
                                                }
                                                try {
                                                        ((TypeBuilder)
builder).SetCustomAttribute (cb);
-                                               } catch
(System.ArgumentException e) {
+                                               } catch
(System.ArgumentException) {
                                                        Report.Warning (
                                                                -21, loc,
                                                "The CharSet named property
on StructLayout\n"+


Also, there are two more warnings I'd like to get rid of, but not sure how.
The are:
ecore.cs(2177,24): warning CS0659: 'Mono.CSharp.TypeExpr' overrides
Object.Equals(object o) but does not override
        Object.GetHashCode()
cfold.cs(271,27): warning CS0675: Bitwise-or operator used on a
sign-extended operand; consider casting to a smaller
        unsigned type first

Regards,
Nick D.




More information about the Mono-devel-list mailing list