[glib: 6/10] Fix several missing initializer warnings in gio/tests/gdbus-example-subtree.c




commit bac08a4b26c9165a240c25f7d0d73b3740a4f9db
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date:   Fri Nov 20 19:44:42 2020 +0100

    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 | };
          | ^

 gio/tests/gdbus-example-subtree.c | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/gio/tests/gdbus-example-subtree.c b/gio/tests/gdbus-example-subtree.c
index 714bbe612..3254a27cd 100644
--- a/gio/tests/gdbus-example-subtree.c
+++ b/gio/tests/gdbus-example-subtree.c
@@ -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 }
 };
 
 /* ---------------------------------------------------------------------------------------------------- */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]