Fix several missing initializer warnings in gio/tests/gdbus-example-subtree.c

gio/tests/gdbus-example-subtree.c:76:1: error: missing initializer for field ‘padding’ of ‘GDBusInterfaceVTable’ {aka ‘const struct _GDBusInterfaceVTable’}
   76 | };
      | ^
gio/tests/gdbus-example-subtree.c:190:1: error: missing initializer for field ‘padding’ of ‘GDBusInterfaceVTable’ {aka ‘const struct _GDBusInterfaceVTable’}
  190 | };
      | ^
gio/tests/gdbus-example-subtree.c:228:1: error: missing initializer for field ‘get_property’ of ‘GDBusInterfaceVTable’ {aka ‘const struct _GDBusInterfaceVTable’}
  228 | };
      | ^
gio/tests/gdbus-example-subtree.c:325:1: error: missing initializer for field ‘padding’ of ‘GDBusSubtreeVTable’ {aka ‘const struct _GDBusSubtreeVTable’}
  325 | };
      | ^
This commit is contained in:
Emmanuel Fleury 2020-11-20 19:44:42 +01:00
parent cb0b4b00df
commit bac08a4b26

View File

@ -72,7 +72,8 @@ const GDBusInterfaceVTable manager_vtable =
{
manager_method_call,
NULL, /* get_property */
NULL /* set_property */
NULL, /* set_property */
{ 0 }
};
/* ---------------------------------------------------------------------------------------------------- */
@ -187,6 +188,7 @@ const GDBusInterfaceVTable block_vtable =
block_method_call,
block_get_property,
block_set_property,
{ 0 }
};
/* ---------------------------------------------------------------------------------------------------- */
@ -223,8 +225,9 @@ partition_method_call (GDBusConnection *connection,
const GDBusInterfaceVTable partition_vtable =
{
partition_method_call,
//partition_get_property,
//partition_set_property
NULL,
NULL,
{ 0 }
};
/* ---------------------------------------------------------------------------------------------------- */
@ -321,7 +324,8 @@ const GDBusSubtreeVTable subtree_vtable =
{
subtree_enumerate,
subtree_introspect,
subtree_dispatch
subtree_dispatch,
{ 0 }
};
/* ---------------------------------------------------------------------------------------------------- */