[glib: 8/11] Fix several warnings in gio/gapplicationimpl-dbus.c:g_application_impl_attempt_primary()
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 8/11] Fix several warnings in gio/gapplicationimpl-dbus.c:g_application_impl_attempt_primary()
- Date: Sat, 30 Jan 2021 22:34:42 +0000 (UTC)
commit cf5a6cfe3a6419ff20bbec92c4a77a28cc0627d6
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date: Tue Nov 17 12:27:35 2020 +0100
Fix several warnings in gio/gapplicationimpl-dbus.c:g_application_impl_attempt_primary()
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]