Fix missing initializer warning in tests/gobject/defaultiface.c

tests/gobject/defaultiface.c: In function ‘test_dynamic_iface_register’:
tests/gobject/defaultiface.c:126:5: error: missing initializer for field ‘class_data’ of ‘GTypeInfo’ {aka ‘const struct _GTypeInfo’}
  126 |     };
      |     ^
This commit is contained in:
Emmanuel Fleury 2020-11-20 21:21:56 +01:00
parent 277d206d38
commit b04ebbf67b

View File

@ -122,7 +122,12 @@ test_dynamic_iface_register (GTypeModule *module)
(GBaseInitFunc) NULL, (GBaseInitFunc) NULL,
(GBaseFinalizeFunc) NULL, (GBaseFinalizeFunc) NULL,
(GClassInitFunc) test_dynamic_iface_default_init, (GClassInitFunc) test_dynamic_iface_default_init,
(GClassFinalizeFunc) test_dynamic_iface_default_finalize (GClassFinalizeFunc) test_dynamic_iface_default_finalize,
NULL,
0,
0,
NULL,
NULL
}; };
test_dynamic_iface_type = g_type_module_register_type (module, G_TYPE_INTERFACE, test_dynamic_iface_type = g_type_module_register_type (module, G_TYPE_INTERFACE,