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: [email protected]
ReportedBy: [email protected]
QAContact: [email protected]
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.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs