[Mono-dev] Adding signal support to gapi genrated binding
mkestner at ximian.com
Mon Jan 7 02:33:38 EST 2008
On Sat, 2008-01-05 at 20:03 +0100, Fabian Sturm wrote:
> One unsolved thing is that I now get a warning for every signal I added.
> Can this be ignored or is this the norm?
> mcs -pkg:gtk-sharp-2.0 -target:library -out:generated/abiword-sharp.dll
> generated/AbiWidget.cs(222,37): warning CS0169: The private method
> `Abiword.AbiWidget.OverrideTableState(GLib.GType)' is never used
> generated/AbiWidget.cs(291,37): warning CS0169: The private method
> `Abiword.AbiWidget.OverrideJustifyAlign(GLib.GType)' is never used
It's normal. We use -nowarn:0169,0612,0618 in gtk-sharp on the csc/mcs
command line for generated source compilations to avoid the spew.
The errors you see are related to methods the GLib.Object type
registration code invokes via reflection to hook overridden virtual
methods into the type's class struct. The compiler has no way to know
they will be used in that manner.
Mike Kestner <mkestner at ximian.com>
More information about the Mono-devel-list