[glib: 5/7] Fix missing initializer warning in gobject/gparam.c:g_param_type_register_static()




commit 34cb2255435a3973522c7ad820fb53148cd2e652
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date:   Mon Nov 16 17:18:07 2020 +0100

    Fix missing initializer warning in gobject/gparam.c:g_param_type_register_static()
    
    gobject/gparam.c: In function ‘g_param_type_register_static’:
    gobject/gparam.c:1434:3: error: missing initializer for field ‘value_table’ of ‘GTypeInfo’ {aka ‘struct 
_GTypeInfo’}
     1434 |   };
          |   ^
    In file included from gobject/gvalue.h:26,
                     from gobject/gparam.h:26,
                     from gobject/gparam.c:26:
    gobject/gtype.h:1063:26: note: ‘value_table’ declared here
     1063 |   const GTypeValueTable *value_table;
          |                          ^~~~~~~~~~~

 gobject/gparam.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gobject/gparam.c b/gobject/gparam.c
index f2bc1a051..0fc673e98 100644
--- a/gobject/gparam.c
+++ b/gobject/gparam.c
@@ -1431,6 +1431,7 @@ g_param_type_register_static (const gchar              *name,
     0,                             /* instance_size */
     16,                            /* n_preallocs */
     NULL,                          /* instance_init */
+    NULL,                          /* value_table */
   };
   ParamSpecClassInfo *cinfo;
 


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