[glib: 6/9] Fix missing initializer warning in gio/gio-tool-monitor.c




commit a54ebd68603ff515fd68adc6504f7787699b4997
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date:   Tue Nov 17 22:52:19 2020 +0100

    Fix missing initializer warning in gio/gio-tool-monitor.c
    
    gio/gio-tool-monitor.c:48:3: error: missing initializer for field ‘description’ of ‘GOptionEntry’ {aka 
‘const struct _GOptionEntry’}
       48 |   { G_OPTION_REMAINING, 0, 0, G_OPTION_ARG_FILENAME_ARRAY, &watch_default },
          |   ^

 gio/gio-tool-monitor.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gio/gio-tool-monitor.c b/gio/gio-tool-monitor.c
index f2ffb3387..73ee1b12e 100644
--- a/gio/gio-tool-monitor.c
+++ b/gio/gio-tool-monitor.c
@@ -45,7 +45,8 @@ static const GOptionEntry entries[] = {
       N_("Report moves and renames as simple deleted/created events"), NULL },
   { "mounts", 'm', 0, G_OPTION_ARG_NONE, &mounts,
       N_("Watch for mount events"), NULL },
-  { G_OPTION_REMAINING, 0, 0, G_OPTION_ARG_FILENAME_ARRAY, &watch_default },
+  { G_OPTION_REMAINING, 0, 0, G_OPTION_ARG_FILENAME_ARRAY, &watch_default,
+      NULL, NULL },
   { NULL }
 };
 


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