[Mono-bugs] [Bug 51014][Nor] New - warning CS0642 (-warn:4)

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 14 Nov 2003 17:32:37 -0500 (EST)


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 polak@gnu.org.

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

--- shadow/51014	2003-11-14 17:32:37.000000000 -0500
+++ shadow/51014.tmp.14500	2003-11-14 17:32:37.000000000 -0500
@@ -0,0 +1,27 @@
+Bug#: 51014
+Product: Mono/MCS
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: polak@gnu.org               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: warning CS0642 (-warn:4)
+
+In some situations warning CS0642 is right, but there might be
+a particular situation where it is redundant, for instance
+while iterating:
+
+ while (obj.MoveNext ())
+   ;
+
+The above is a common trick, but mcs (warn:4) reports
+CS0642 (Possibly mistaken empty statement), which is not true.