Fix missing initializer warning in gobject/gtype.c

gobject/gtype.c:1103:55: warning: missing field 'value_free' initializer
          static const GTypeValueTable zero_vtable = { NULL, };
                                                             ^
This commit is contained in:
Emmanuel Fleury 2021-04-28 23:56:47 +02:00
parent 4575c70a6b
commit bee07cebcd

View File

@ -1100,7 +1100,8 @@ type_data_make_W (TypeNode *node,
vtable = pnode->data->common.value_table; vtable = pnode->data->common.value_table;
else else
{ {
static const GTypeValueTable zero_vtable = { NULL, }; static const GTypeValueTable zero_vtable =
{ NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL };
value_table = &zero_vtable; value_table = &zero_vtable;
} }