[Mono-bugs] [Bug 433782] New: Confusion about default warning level

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Oct 9 04:58:44 EDT 2008


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: mono-bugs at lists.ximian.com
        ReportedBy: juraj at hotfeet.ch
         QAContact: mono-bugs at lists.ximian.com
          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.


More information about the mono-bugs mailing list