diff options
author | Emmanuel Fleury <emmanuel.fleury@gmail.com> | 2020-11-16 16:55:46 +0100 |
---|---|---|
committer | Emmanuel Fleury <emmanuel.fleury@gmail.com> | 2020-12-16 10:56:32 +0100 |
commit | 12ec1eb062fcf3dd1abed39086995ca8a1a09ff0 (patch) | |
tree | ce7f94eaf70528d9463321d435d04a5452221acb /gobject/gtypeplugin.c | |
parent | cc7540909ff4a4aa09b1b0b661431276c29f3458 (diff) | |
download | glib-12ec1eb062fcf3dd1abed39086995ca8a1a09ff0.tar.gz |
Fix missing initializer warning in gobject/gtypeplugin.c:g_type_plugin_get_type()
gobject/gtypeplugin.c: In function ‘g_type_plugin_get_type’:
gobject/gtypeplugin.c:91:7: error: missing initializer for field ‘class_init’ of ‘GTypeInfo’ {aka ‘const struct _GTypeInfo’}
91 | };
| ^
In file included from gobject/gtypeplugin.h:24,
from gobject/gtypeplugin.c:20:
gobject/gtype.h:1053:26: note: ‘class_init’ declared here
1053 | GClassInitFunc class_init;
| ^~~~~~~~~~
Diffstat (limited to 'gobject/gtypeplugin.c')
-rw-r--r-- | gobject/gtypeplugin.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/gobject/gtypeplugin.c b/gobject/gtypeplugin.c index d5007f1d3..eba85151d 100644 --- a/gobject/gtypeplugin.c +++ b/gobject/gtypeplugin.c @@ -85,9 +85,16 @@ g_type_plugin_get_type (void) if (!type_plugin_type) { const GTypeInfo type_plugin_info = { - sizeof (GTypePluginClass), - NULL, /* base_init */ - NULL, /* base_finalize */ + sizeof (GTypePluginClass), + NULL, /* base_init */ + NULL, /* base_finalize */ + 0, /* class_init */ + NULL, /* class_destroy */ + NULL, /* class_data */ + 0, /* instance_size */ + 0, /* n_preallocs */ + NULL, /* instance_init */ + NULL, /* value_table */ }; type_plugin_type = g_type_register_static (G_TYPE_INTERFACE, g_intern_static_string ("GTypePlugin"), &type_plugin_info, 0); |