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 |   };
      |   ^
This commit is contained in:
Emmanuel Fleury 2020-11-17 12:27:35 +01:00
parent 7d81742339
commit cf5a6cfe3a

View File

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