mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-09 18:54:04 +02:00
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; | ^~~~~~~~~~~
This commit is contained in:
@@ -1431,6 +1431,7 @@ g_param_type_register_static (const gchar *name,
|
|||||||
0, /* instance_size */
|
0, /* instance_size */
|
||||||
16, /* n_preallocs */
|
16, /* n_preallocs */
|
||||||
NULL, /* instance_init */
|
NULL, /* instance_init */
|
||||||
|
NULL, /* value_table */
|
||||||
};
|
};
|
||||||
ParamSpecClassInfo *cinfo;
|
ParamSpecClassInfo *cinfo;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user