Bug 316035 (MONO66031) - [PATCH] mcs does not report CS0168 (using warning level 4)
Summary: [PATCH] mcs does not report CS0168 (using warning level 4)
Status: RESOLVED FIXED
Alias: MONO66031
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: 1.1
Hardware: Other All
: P3 - Medium : Minor
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-15 21:15 UTC by Gert Driesen
Modified: 2007-09-15 21:24 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
proposed fix (920 bytes, patch)
2005-08-24 12:16 UTC, Thomas Wiest
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 18:53:54 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)