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




commit 8a3e184db933b12eba2b2b4bf72c361ff8838e89
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date:   Wed Apr 28 23:25:17 2021 +0200

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

 gio/gio-tool-copy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gio/gio-tool-copy.c b/gio/gio-tool-copy.c
index 0083eba08..cbae0dc6c 100644
--- a/gio/gio-tool-copy.c
+++ b/gio/gio-tool-copy.c
@@ -47,7 +47,7 @@ static const GOptionEntry entries[] = {
   { "backup", 'b', 0, G_OPTION_ARG_NONE, &backup, N_("Backup existing destination files"), NULL },
   { "no-dereference", 'P', 0, G_OPTION_ARG_NONE, &no_dereference, N_("Never follow symbolic links"), NULL },
   { "default-permissions", 0, 0, G_OPTION_ARG_NONE, &default_permissions, N_("Use default permissions for 
the destination"), NULL },
-  { NULL }
+  G_OPTION_ENTRY_NULL
 };
 
 static gint64 start_time;


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