[glib: 3/7] Fix multiple missing initializer warnings in gio/tests/gdbus-export.c
- From: Sebastian Dröge <sdroege src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 3/7] Fix multiple missing initializer warnings in gio/tests/gdbus-export.c
- Date: Thu, 15 Apr 2021 07:24:58 +0000 (UTC)
commit 5595b65476ecdd9cab5f2f5b77c1aeda5e383357
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date: Thu Nov 19 01:16:14 2020 +0100
Fix multiple missing initializer warnings in gio/tests/gdbus-export.c
gio/tests/gdbus-export.c:130:1: error: missing initializer for field ‘properties’ of ‘GDBusInterfaceInfo’
{aka ‘const struct _GDBusInterfaceInfo’}
130 | };
| ^
In file included from gio/gio.h:57,
from gio/tests/gdbus-export.c:21:
gio/gdbusintrospection.h:156:25: note: ‘properties’ declared here
156 | GDBusPropertyInfo **properties;
| ^~~~~~~~~~
...
gio/tests/gdbus-export.c | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
---
diff --git a/gio/tests/gdbus-export.c b/gio/tests/gdbus-export.c
index 61d47e90a..aec21d7d0 100644
--- a/gio/tests/gdbus-export.c
+++ b/gio/tests/gdbus-export.c
@@ -127,6 +127,8 @@ static const GDBusInterfaceInfo foo2_interface_info =
"org.example.Foo2",
(GDBusMethodInfo **) &foo_method_info_pointers,
(GDBusSignalInfo **) &foo_signal_info_pointers,
+ NULL,
+ NULL
};
static void
@@ -198,7 +200,8 @@ static const GDBusInterfaceVTable foo_vtable =
{
foo_method_call,
foo_get_property,
- foo_set_property
+ foo_set_property,
+ { 0 },
};
/* -------------------- */
@@ -311,7 +314,8 @@ static const GDBusInterfaceVTable dyna_interface_vtable =
{
dyna_cyber,
NULL,
- NULL
+ NULL,
+ { 0 }
};
/* ---------------------------------------------------------------------------------------------------- */
@@ -693,7 +697,8 @@ static const GDBusSubtreeVTable subtree_vtable =
{
subtree_enumerate,
subtree_introspect,
- subtree_dispatch
+ subtree_dispatch,
+ { 0 }
};
/* -------------------- */
@@ -747,7 +752,8 @@ static const GDBusSubtreeVTable dynamic_subtree_vtable =
{
dynamic_subtree_enumerate,
dynamic_subtree_introspect,
- dynamic_subtree_dispatch
+ dynamic_subtree_dispatch,
+ { 0 }
};
/* -------------------- */
@@ -1729,7 +1735,7 @@ test_async_properties (void)
GError *error = NULL;
guint registration_id, registration_id2;
static const GDBusInterfaceVTable vtable = {
- test_async_method_call, NULL, NULL
+ test_async_method_call, NULL, NULL, { 0 }
};
c = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, &error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]