mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-19 23:28:54 +02:00
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;
| ^~~~~~~~~~
This commit is contained in:
@@ -85,9 +85,16 @@ g_type_plugin_get_type (void)
|
|||||||
if (!type_plugin_type)
|
if (!type_plugin_type)
|
||||||
{
|
{
|
||||||
const GTypeInfo type_plugin_info = {
|
const GTypeInfo type_plugin_info = {
|
||||||
sizeof (GTypePluginClass),
|
sizeof (GTypePluginClass),
|
||||||
NULL, /* base_init */
|
NULL, /* base_init */
|
||||||
NULL, /* base_finalize */
|
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);
|
type_plugin_type = g_type_register_static (G_TYPE_INTERFACE, g_intern_static_string ("GTypePlugin"), &type_plugin_info, 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user