summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Odin <dindinx@src.gnome.org>2005-09-26 19:05:29 +0000
committerDavid Odin <dindinx@src.gnome.org>2005-09-26 19:05:29 +0000
commited3ada1b5ed0ec86af9eda58d3a119615a28514e (patch)
tree32671b2d17f20d5fa274e8d46784df5bcb2e4788
parent8a5550cc662aa9e44150e7f2252da26c97193d64 (diff)
downloadglib-ed3ada1b5ed0ec86af9eda58d3a119615a28514e.tar.gz
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
-rw-r--r--ChangeLog5
-rw-r--r--ChangeLog.pre-2-105
-rw-r--r--ChangeLog.pre-2-125
-rw-r--r--gobject/gtype.h4
4 files changed, 18 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index d5634ef31..e3377ec56 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
* configure.in: Bump version number
diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10
index d5634ef31..e3377ec56 100644
--- a/ChangeLog.pre-2-10
+++ b/ChangeLog.pre-2-10
@@ -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>
* configure.in: Bump version number
diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12
index d5634ef31..e3377ec56 100644
--- a/ChangeLog.pre-2-12
+++ b/ChangeLog.pre-2-12
@@ -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>
* configure.in: Bump version number
diff --git a/gobject/gtype.h b/gobject/gtype.h
index 43926c7f5..fb0efa114 100644
--- a/gobject/gtype.h
+++ b/gobject/gtype.h
@@ -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); \
}