mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
glib-compile-resources: avoid warnings with -Wmissing-field-initializers
Initialize all the fields of the generated GStaticResource, to avoid warnings in packages that build with -Wmissing-field-initializers.
This commit is contained in:
parent
fb1fa6747d
commit
615b44c7ca
@ -878,7 +878,7 @@ main (int argc, char **argv)
|
|||||||
|
|
||||||
fprintf (file,
|
fprintf (file,
|
||||||
"\n"
|
"\n"
|
||||||
"static GStaticResource static_resource = { %s_resource_data.data, sizeof (%s_resource_data.data) };\n"
|
"static GStaticResource static_resource = { %s_resource_data.data, sizeof (%s_resource_data.data), NULL, NULL, NULL };\n"
|
||||||
"%s GResource *%s_get_resource (void);\n"
|
"%s GResource *%s_get_resource (void);\n"
|
||||||
"GResource *%s_get_resource (void)\n"
|
"GResource *%s_get_resource (void)\n"
|
||||||
"{\n"
|
"{\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user