diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2013-02-22 17:40:00 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2013-02-23 00:13:43 +0800 |
commit | 3a549931dff89f2b1885829386198005a207d29b (patch) | |
tree | 0a793b056c6b4af89fef0a942f3bdb7bcaab1adf /tests/gimarshallingtests.c | |
parent | 1513b683d7f897e825ae4704544fbe0c72bb611a (diff) | |
download | gobject-introspection-3a549931dff89f2b1885829386198005a207d29b.tar.gz |
test/gimarshallingtests.c: Fix build on C89 compilers
https://bugzilla.gnome.org/show_bug.cgi?id=694426
Diffstat (limited to 'tests/gimarshallingtests.c')
-rw-r--r-- | tests/gimarshallingtests.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/gimarshallingtests.c b/tests/gimarshallingtests.c index 2e1279a2..4f4be615 100644 --- a/tests/gimarshallingtests.c +++ b/tests/gimarshallingtests.c @@ -4402,9 +4402,10 @@ void gi_marshalling_tests_object_get_ref_info_for_vfunc_in_object_transfer_none (GIMarshallingTestsObject *self, GType type, guint *ref_count, gboolean *is_floating) { static gboolean destroy_called; + GObject *object; destroy_called = FALSE; - GObject *object = g_object_new(type, NULL); + object = g_object_new(type, NULL); g_object_weak_ref (object, (GWeakNotify)_vfunc_in_object_destroy_callback, &destroy_called); GI_MARSHALLING_TESTS_OBJECT_GET_CLASS (self)->vfunc_in_object_transfer_none (self, object); @@ -4429,9 +4430,10 @@ void gi_marshalling_tests_object_get_ref_info_for_vfunc_in_object_transfer_full (GIMarshallingTestsObject *self, GType type, guint *ref_count, gboolean *is_floating) { static gboolean destroy_called; + GObject *object; destroy_called = FALSE; - GObject *object = g_object_new(type, NULL); + object = g_object_new(type, NULL); g_object_weak_ref (object, (GWeakNotify)_vfunc_in_object_destroy_callback, &destroy_called); /* Calling the vfunc takes ownership of the object, so we use a weak_ref to determine |