initialize all the fields of GInterfaceInfo in the G_IMPLEMENT_INTERFACE

* gobject/gtype.h: initialize all the fields of GInterfaceInfo in the
  G_IMPLEMENT_INTERFACE macro, to shut up a warning when compiling at -W
This commit is contained in:
David Odin 2005-09-26 18:35:32 +00:00
parent a2b2c8143f
commit 31659726ea
4 changed files with 18 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-09-26 DindinX <dindinx@gimp.org>
* gobject/gtype.h: initialize all the fields of GInterfaceInfo in the
G_IMPLEMENT_INTERFACE macro, to shut up a warning when compiling at -W
2005-09-26 Matthias Clasen <mclasen@redhat.com>
* glib/gstrfuncs.c (g_ascii_strtoull): Add details to the

View File

@ -1,3 +1,8 @@
2005-09-26 DindinX <dindinx@gimp.org>
* gobject/gtype.h: initialize all the fields of GInterfaceInfo in the
G_IMPLEMENT_INTERFACE macro, to shut up a warning when compiling at -W
2005-09-26 Matthias Clasen <mclasen@redhat.com>
* glib/gstrfuncs.c (g_ascii_strtoull): Add details to the

View File

@ -1,3 +1,8 @@
2005-09-26 DindinX <dindinx@gimp.org>
* gobject/gtype.h: initialize all the fields of GInterfaceInfo in the
G_IMPLEMENT_INTERFACE macro, to shut up a warning when compiling at -W
2005-09-26 Matthias Clasen <mclasen@redhat.com>
* glib/gstrfuncs.c (g_ascii_strtoull): Add details to the

View File

@ -340,7 +340,9 @@ gpointer g_type_instance_get_private (GTypeInstance *instance,
*/
#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); \
}