[glib: 11/12] Fix missing initializer warning in gio/gio-tool-info.c




commit 82fc86dcd4f172c2df428ad5aeb79e8a54e88f9c
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date:   Wed Apr 28 23:26:34 2021 +0200

    Fix missing initializer warning in gio/gio-tool-info.c
    
    gio/gio-tool-info.c:41:10: warning: missing field 'short_name' initializer
      { NULL }
             ^

 gio/gio-tool-info.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gio/gio-tool-info.c b/gio/gio-tool-info.c
index a06263545..336da64e2 100644
--- a/gio/gio-tool-info.c
+++ b/gio/gio-tool-info.c
@@ -38,7 +38,7 @@ static const GOptionEntry entries[] = {
   { "filesystem", 'f', 0, G_OPTION_ARG_NONE, &filesystem, N_("Get file system info"), NULL },
   { "attributes", 'a', 0, G_OPTION_ARG_STRING, &attributes, N_("The attributes to get"), N_("ATTRIBUTES") },
   { "nofollow-symlinks", 'n', 0, G_OPTION_ARG_NONE, &nofollow_symlinks, N_("Don’t follow symbolic links"), 
NULL },
-  { NULL }
+  G_OPTION_ENTRY_NULL
 };
 
 static char *


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