[glib: 9/11] Fix several warnings in gio/gapplicationimpl-dbus.c:g_application_impl_command_line()
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 9/11] Fix several warnings in gio/gapplicationimpl-dbus.c:g_application_impl_command_line()
- Date: Sat, 30 Jan 2021 22:34:42 +0000 (UTC)
commit 579e9e49c55f61910046f460c4640b49437d1077
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date: Tue Nov 17 12:29:48 2020 +0100
Fix several warnings in gio/gapplicationimpl-dbus.c:g_application_impl_command_line()
gio/gapplicationimpl-dbus.c: In function ‘g_application_impl_command_line’:
gio/gapplicationimpl-dbus.c:772:3: error: ‘static’ is not at beginning of declaration
772 | const static GDBusInterfaceVTable vtable = {
| ^~~~~
gio/gapplicationimpl-dbus.c:774:3: error: missing initializer for field ‘get_property’ of
‘GDBusInterfaceVTable’ {aka ‘const struct _GDBusInterfaceVTable’}
774 | };
| ^
gio/gapplicationimpl-dbus.c | 4 ++--
gio/gkeyfilesettingsbackend.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gio/gapplicationimpl-dbus.c b/gio/gapplicationimpl-dbus.c
index 23c280396..5604b9260 100644
--- a/gio/gapplicationimpl-dbus.c
+++ b/gio/gapplicationimpl-dbus.c
@@ -776,8 +776,8 @@ g_application_impl_command_line (GApplicationImpl *impl,
const gchar * const *arguments,
GVariant *platform_data)
{
- const static GDBusInterfaceVTable vtable = {
- g_application_impl_cmdline_method_call
+ static const GDBusInterfaceVTable vtable = {
+ g_application_impl_cmdline_method_call, NULL, NULL, { 0 }
};
const gchar *object_path = "/org/gtk/Application/CommandLine";
GMainContext *context;
diff --git a/gio/gkeyfilesettingsbackend.c b/gio/gkeyfilesettingsbackend.c
index 039ff06b6..60f0cc921 100644
--- a/gio/gkeyfilesettingsbackend.c
+++ b/gio/gkeyfilesettingsbackend.c
@@ -362,7 +362,7 @@ g_keyfile_settings_backend_write_tree (GSettingsBackend *backend,
GTree *tree,
gpointer origin_tag)
{
- WriteManyData data = { G_KEYFILE_SETTINGS_BACKEND (backend) };
+ WriteManyData data = { G_KEYFILE_SETTINGS_BACKEND (backend), 0 };
gboolean success;
GError *error = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]