[glib: 4/7] Fix missing initializer warning in gobject/gtypemodule.c:g_type_module_get_type()




commit dd16d1e879a6a9238d1d8d11f04664faf03cc8ad
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date:   Mon Nov 16 17:10:35 2020 +0100

    Fix missing initializer warning in gobject/gtypemodule.c:g_type_module_get_type()
    
    gobject/gtypemodule.c: In function ‘g_type_module_get_type’:
    gobject/gtypemodule.c:154:7: error: missing initializer for field ‘value_table’ of ‘GTypeInfo’ {aka 
‘const struct _GTypeInfo’}
      154 |       };
          |       ^
    In file included from gobject/gtypeplugin.h:24,
                     from gobject/gtypemodule.c:22:
    gobject/gtype.h:1063:26: note: ‘value_table’ declared here
     1063 |   const GTypeValueTable *value_table;
          |                          ^~~~~~~~~~~

 gobject/gtypemodule.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gobject/gtypemodule.c b/gobject/gtypemodule.c
index 4ecaf8c88..dcbd73467 100644
--- a/gobject/gtypemodule.c
+++ b/gobject/gtypemodule.c
@@ -151,6 +151,7 @@ g_type_module_get_type (void)
         sizeof (GTypeModule),
         0,              /* n_preallocs */
         NULL,           /* instance_init */
+        NULL,           /* value_table */
       };
       const GInterfaceInfo iface_info = {
         (GInterfaceInitFunc) g_type_module_iface_init,


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