G_IMPLEMENT_INTERFACE warnings
- From: DindinX <dindinx gimp org>
- To: gtk-devel-list gnome org
- Subject: G_IMPLEMENT_INTERFACE warnings
- Date: Mon, 26 Sep 2005 20:14:21 +0200
Hi,
The G_DEFINE_TYPE* macros are very handy to reduce the typos while
creating new classes. I now use them in the gimp and some other
personnal projects. However, using the G_IMPLEMENT_INTERFACE macro
introduce a warning when compiling with -W. This is not that important,
but it can be fixed easily.
The attached patch fixes this.
Can I commit it?
Regards,
DindinX
--
dindinx gimp org
Index: gobject/gtype.h
===================================================================
RCS file: /cvs/gnome/glib/gobject/gtype.h,v
retrieving revision 1.61
diff -u -r1.61 gtype.h
--- gobject/gtype.h 31 Aug 2005 14:49:20 -0000 1.61
+++ gobject/gtype.h 26 Sep 2005 18:11:27 -0000
@@ -340,7 +340,9 @@
*/
#define G_IMPLEMENT_INTERFACE(TYPE_IFACE, iface_init) { \
static const GInterfaceInfo g_implement_interface_info = { \
- (GInterfaceInitFunc) iface_init \
+ (GInterfaceInitFunc) iface_init, \
+ (GInterfaceFinalizeFunc) NULL, \
+ NULL \
}; \
g_type_add_interface_static (g_define_type_id, TYPE_IFACE, &g_implement_interface_info); \
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]