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 |   };
      |   ^
This commit is contained in:
Emmanuel Fleury 2020-11-17 12:29:48 +01:00
parent cf5a6cfe3a
commit 579e9e49c5
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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;