[Mono-bugs] [Bug 74625][Wis] New - mcs shouldn't give "cs0169 private field never used" in LayoutKind.Sequential structs

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 15 Apr 2005 14:51:09 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by danw@novell.com.

http://bugzilla.ximian.com/show_bug.cgi?id=74625

--- shadow/74625	2005-04-15 14:51:09.000000000 -0400
+++ shadow/74625.tmp.16835	2005-04-15 14:51:09.000000000 -0400
@@ -0,0 +1,31 @@
+Bug#: 74625
+Product: Mono: Compilers
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: danw@novell.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mcs shouldn't give "cs0169 private field never used" in LayoutKind.Sequential structs
+
+gtk# now gets lots of warnings like:
+
+./Value.cs(33) warning CS0169: The private field 'GLib.Value.pad_1' is
+never used
+
+where the field in question is never intended to be used from managed
+code, but needs to be there to cause the struct to marshal correctly
+to/from unmanaged code. It would be nice to not get the warning in this
+case.
+
+I realize it might not be possible to get rid of this warning without
+also getting rid of useful warnings in the process though, so maybe this
+is NOTABUG