From 68e69a412898b5b5e51b854025ad21a457120b60 Mon Sep 17 00:00:00 2001 From: Emmanuel Fleury Date: Tue, 17 Nov 2020 20:57:14 +0100 Subject: [PATCH] Fix missing initializer warning in gio/gdbusconnection.c:g_dbus_connection_register_object_with_closures() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gio/gdbusconnection.c: In function ‘g_dbus_connection_register_object_with_closures’: gio/gdbusconnection.c:5527:5: error: missing initializer for field ‘padding’ of ‘GDBusInterfaceVTable’ {aka ‘struct _GDBusInterfaceVTable’} 5527 | }; | ^ --- gio/gdbusconnection.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gio/gdbusconnection.c b/gio/gdbusconnection.c index 5c5ef1718..776289340 100644 --- a/gio/gdbusconnection.c +++ b/gio/gdbusconnection.c @@ -5530,7 +5530,8 @@ g_dbus_connection_register_object_with_closures (GDBusConnection *connection { method_call_closure != NULL ? register_with_closures_on_method_call : NULL, get_property_closure != NULL ? register_with_closures_on_get_property : NULL, - set_property_closure != NULL ? register_with_closures_on_set_property : NULL + set_property_closure != NULL ? register_with_closures_on_set_property : NULL, + { 0 } }; data = register_object_data_new (method_call_closure, get_property_closure, set_property_closure);