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;
      |                          ^~~~~~~~~~~
This commit is contained in:
Emmanuel Fleury 2020-11-16 17:10:35 +01:00
parent 12ec1eb062
commit dd16d1e879

View File

@ -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,