[glib: 8/12] Fix missing initializer warning in gio/glib-compile-schemas.c




commit 27454ed55722e3164fbe514d8c3f68ce6a3cc721
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date:   Wed Apr 28 23:22:26 2021 +0200

    Fix missing initializer warning in gio/glib-compile-schemas.c
    
    gio/glib-compile-schemas.c:2181:12: warning: missing field 'short_name' initializer
        { NULL }
               ^

 gio/glib-compile-schemas.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gio/glib-compile-schemas.c b/gio/glib-compile-schemas.c
index cfea042f8..7e1152f6b 100644
--- a/gio/glib-compile-schemas.c
+++ b/gio/glib-compile-schemas.c
@@ -2178,7 +2178,7 @@ main (int argc, char **argv)
     /* These options are only for use in the gschema-compile tests */
     { "schema-file", 0, G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_FILENAME_ARRAY, &schema_files, NULL, NULL },
     { "override-file", 0, G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_FILENAME_ARRAY, &override_files, NULL, NULL },
-    { NULL }
+    G_OPTION_ENTRY_NULL
   };
 
 #ifdef G_OS_WIN32


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