Fix several missing initializer warnings in gio/gapplication.c:g_application_parse_command_line()

gio/gapplication.c: In function ‘g_application_parse_command_line’:
gio/gapplication.c:545:11: error: missing initializer for field ‘arg_description’ of ‘GOptionEntry’ {aka ‘struct _GOptionEntry’}
  545 |           N_("Enter GApplication service mode (use from D-Bus service files)") },
      |           ^~
gio/gapplication.c:557:11: error: missing initializer for field ‘arg_description’ of ‘GOptionEntry’ {aka ‘struct _GOptionEntry’}
  557 |           N_("Override the application’s ID") },
      |           ^~
gio/gapplication.c:569:11: error: missing initializer for field ‘arg_description’ of ‘GOptionEntry’ {aka ‘struct _GOptionEntry’}
  569 |           N_("Replace the running instance") },
      |           ^~
This commit is contained in:
Emmanuel Fleury 2020-11-17 21:13:01 +01:00
parent 0cc48ee937
commit 2fd429046d

View File

@ -542,7 +542,7 @@ g_application_parse_command_line (GApplication *application,
{
GOptionEntry entries[] = {
{ "gapplication-service", '\0', 0, G_OPTION_ARG_NONE, &become_service,
N_("Enter GApplication service mode (use from D-Bus service files)") },
N_("Enter GApplication service mode (use from D-Bus service files)"), NULL },
{ NULL }
};
@ -554,7 +554,7 @@ g_application_parse_command_line (GApplication *application,
{
GOptionEntry entries[] = {
{ "gapplication-app-id", '\0', 0, G_OPTION_ARG_STRING, &app_id,
N_("Override the applications ID") },
N_("Override the applications ID"), NULL },
{ NULL }
};
@ -566,7 +566,7 @@ g_application_parse_command_line (GApplication *application,
{
GOptionEntry entries[] = {
{ "gapplication-replace", '\0', 0, G_OPTION_ARG_NONE, &replace,
N_("Replace the running instance") },
N_("Replace the running instance"), NULL },
{ NULL }
};