[Mono-bugs] [Bug 62673][Wis] Changed - Spurious warning CS0169

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Mar 22 11:35:16 EST 2006


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by miguel at ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=62673

--- shadow/62673	2006-03-22 07:37:33.000000000 -0500
+++ shadow/62673.tmp.9338	2006-03-22 11:35:16.000000000 -0500
@@ -68,6 +68,24 @@
     
     static void Main () {}
 }
 
 Note: csc reports no warning for this but when you compile with /o+ no
 code is emitted for ctor.
+
+------- Additional Comments From miguel at ximian.com  2006-03-22 11:35 -------
+Am just not sure that the right thing here is to produce more warnings
+than csc produces.
+
+There are a number of issues here:
+1. With the default warning level, we do get this error, and it
+happens quite often in our class libraries.   
+
+2. What is the real reason for CSC not to warn?  Is there a common
+pattern/usage of these variables that will lead to this?
+
+My guess for (2) is that its possible that auto-generated code (say,
+Winforms) might assign more variables than are actually used in a
+winforms application.
+
+The extra warnings that we will report will likely hide real
+problematic warnings in my opinion.


More information about the mono-bugs mailing list