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

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 17 Apr 2005 13:42:41 -0400 (EDT)

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 bmaurer@users.sf.net.


--- shadow/62673	2005-04-16 17:25:06.000000000 -0400
+++ shadow/62673.tmp.3849	2005-04-17 13:42:41.000000000 -0400
@@ -42,6 +42,14 @@
 I think this is csc bug because variable is really never used
 ------- Additional Comments From miguel@ximian.com  2004-09-19 01:31 -------
 I think that in this case, since it is used to store a reference
 value it should be flagged as "used" as it sole purpose might
 be to keep a reference around.
+------- Additional Comments From bmaurer@users.sf.net  2005-04-17 13:42 -------
+Don't we emit warning messages like "varibale X assigned but never
+used" for a local method? Wouldn't this just be an extension of that?
+OTOH, in the local variable case, the jit is free to optimize away the
+variable -- it isn't really keeping anything alive. This isn't true in
+the case of a field.