https://bugzilla.novell.com/show_bug.cgi?id=433782


           Summary: Confusion about default warning level
           Product: Mono: Compilers
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Minor
          Priority: P5 - None
         Component: C#
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [email protected]
          Found By: ---


The man page, --help text and the actual implementation are inconsistent:

man mcs:
========
-warn:LEVEL
Sets the warning level.  0 is the lowest warning level, and 4 is the highest. 
The default is 2.

gmcs --help:
============
-warn:0-4          Sets warning level, the default is 3 (short -w:)


grep WarningLevel mcs/mcs/ChangeLog gives me this:
ChangeLog:      * RootContext.cs: Pushed default WarningLevel to 3.
ChangeLog:      * rootcontext.cs: WarningLevel is 4 by default now.

while rootcontext.cs still contains this:
Report.WarningLevel = 4;

The docs need to be updated.

BTW: According to http://msdn.microsoft.com/en-us/library/13b90fz7(VS.71).aspx,
the default warning level of csc is 4, so gmcs is correct to have 4 as actual
default as well.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to