[glib: 2/6] Fix missing initializer warning in gio/gdbusconnection.c:g_dbus_connection_register_object_with_clos
- From: Sebastian Dröge <sdroege src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 2/6] Fix missing initializer warning in gio/gdbusconnection.c:g_dbus_connection_register_object_with_clos
- Date: Tue, 2 Feb 2021 16:11:54 +0000 (UTC)
commit 68e69a412898b5b5e51b854025ad21a457120b60
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date: Tue Nov 17 20:57:14 2020 +0100
Fix missing initializer warning in gio/gdbusconnection.c:g_dbus_connection_register_object_with_closures()
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]