[Mono-bugs] [Bug 472007] New: pragma warning disable not compatible with Microsoft C# compiler

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Feb 3 11:32:46 EST 2009


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


           Summary: pragma warning disable not compatible with Microsoft
                    C# compiler
    Classification: Mono
           Product: Mono: Compilers
           Version: 2.2.x
          Platform: i686
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: william at fultondesigns.co.uk
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


#pragma warning disable 1699 not recognised by gmcs, but is recognised by
csc.exe. Simple testcase and usage below shows the problem. The testcase
compiles successfully with csc.exe version 8.00.50727.1433 (.NET 2.0).

$ cat temp.cs
using System;

#pragma warning disable 1699

public class runme {
    static void Main(String[] str) {
    }
}
$ gmcs temp.cs /warnaserror+ /out:runme.exe
temp.cs(3,1): error CS1691: `1699' is not a valid warning number
Compilation failed: 1 error(s), 0 warnings
$

-- 
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