[glib: 5/6] Fix several missing initializer in gio/gsettingsschema.c:parse_into_text_tables()




commit 05c311a961ad3665703a3d6995a0f0fbec6768c1
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date:   Tue Nov 17 21:54:30 2020 +0100

    Fix several missing initializer in gio/gsettingsschema.c:parse_into_text_tables()
    
    gio/gsettingsschema.c: In function ‘parse_into_text_tables’:
    gio/gsettingsschema.c:682:3: error: missing initializer for field ‘passthrough’ of ‘GMarkupParser’ {aka 
‘struct _GMarkupParser’}
      682 |   GMarkupParser parser = { start_element, end_element, text };
          |   ^~~~~~~~~~~~~
    gio/gsettingsschema.c:683:3: error: missing initializer for field ‘gettext_domain’ of 
‘TextTableParseInfo’ [-Werror=missing-field-initializers]
      683 |   TextTableParseInfo info = { summaries, descriptions };
          |   ^~~~~~~~~~~~~~~~~~

 gio/gsettingsschema.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gio/gsettingsschema.c b/gio/gsettingsschema.c
index ed2a7a560..a46d5056f 100644
--- a/gio/gsettingsschema.c
+++ b/gio/gsettingsschema.c
@@ -683,8 +683,8 @@ parse_into_text_tables (const gchar *directory,
                         GHashTable  *summaries,
                         GHashTable  *descriptions)
 {
-  GMarkupParser parser = { start_element, end_element, text };
-  TextTableParseInfo info = { summaries, descriptions };
+  GMarkupParser parser = { start_element, end_element, text, NULL, NULL };
+  TextTableParseInfo info = { summaries, descriptions, NULL, NULL, NULL, NULL };
   const gchar *basename;
   GDir *dir;
 


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