Bugzilla – Bug 316035
[PATCH] mcs does not report CS0168 (using warning level 4)
Last modified: 2007-09-15 21:24:23 UTC
---- Reported by gert.driesen@pandora.be 2004-09-15 14:15:12 MST ---- mcs (built from cvs head) does not report CS0618 for the following code fragment (when using warning level 4) : using System; public class ConsoleStub { public static void Main(string[] args) { try { } catch (Exception e) { } } } When compiling this code fragment using csc (warning level 4), you'll get the following warning : test.cs(6,7): warning CS0168: The variable 'e' is declared but never used ---- Additional Comments From gert.driesen@pandora.be 2005-06-11 03:17:14 MST ---- Any progress on this issue ? I can still reproduce it using mcs svn. ---- Additional Comments From atsushi@ximian.com 2005-08-24 05:16:31 MST ---- Created an attachment (id=166780) proposed fix ---- Additional Comments From rharinath@novell.com 2006-04-20 07:34:58 MST ---- Should be fixed in SVN r59691. Imported an attachment (id=166780)