From cf5a6cfe3a6419ff20bbec92c4a77a28cc0627d6 Mon Sep 17 00:00:00 2001 From: Emmanuel Fleury Date: Tue, 17 Nov 2020 12:27:35 +0100 Subject: [PATCH] Fix several warnings in gio/gapplicationimpl-dbus.c:g_application_impl_attempt_primary() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gio/gapplicationimpl-dbus.c: In function ‘g_application_impl_attempt_primary’: gio/gapplicationimpl-dbus.c:364:3: error: ‘static’ is not at beginning of declaration 364 | const static GDBusInterfaceVTable vtable = { | ^~~~~ gio/gapplicationimpl-dbus.c:368:3: error: missing initializer for field ‘padding’ of ‘GDBusInterfaceVTable’ {aka ‘const struct _GDBusInterfaceVTable’} 368 | }; | ^ --- gio/gapplicationimpl-dbus.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gio/gapplicationimpl-dbus.c b/gio/gapplicationimpl-dbus.c index 263001b8e..23c280396 100644 --- a/gio/gapplicationimpl-dbus.c +++ b/gio/gapplicationimpl-dbus.c @@ -361,10 +361,11 @@ g_application_impl_attempt_primary (GApplicationImpl *impl, GCancellable *cancellable, GError **error) { - const static GDBusInterfaceVTable vtable = { + static const GDBusInterfaceVTable vtable = { g_application_impl_method_call, g_application_impl_get_property, - NULL /* set_property */ + NULL, /* set_property */ + { 0 } }; GApplicationClass *app_class = G_APPLICATION_GET_CLASS (impl->app); GBusNameOwnerFlags name_owner_flags;