[glib: 4/6] Fix several missing initializer warnings in gio/gapplication.c:g_application_parse_command_line()




commit 2fd429046daddd39ff98dd17f5a89e6242c56fba
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date:   Tue Nov 17 21:13:01 2020 +0100

    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") },
          |           ^~

 gio/gapplication.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gio/gapplication.c b/gio/gapplication.c
index 8a473e63f..1c560e5e8 100644
--- a/gio/gapplication.c
+++ b/gio/gapplication.c
@@ -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 application’s ID") },
+          N_("Override the application’s 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 }
       };
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]