Use G_VALUE_INIT instead of { 0, }

The macro avoids warnings from anal-retentive compilers.
This commit is contained in:
Emmanuele Bassi
2012-03-17 16:38:06 +00:00
parent be5921e6fb
commit b3b1994c13
13 changed files with 39 additions and 34 deletions

View File

@ -1143,7 +1143,7 @@ _clutter_script_parse_node (ClutterScript *script,
JsonNode *node,
GParamSpec *pspec)
{
GValue node_value = { 0, };
GValue node_value = G_VALUE_INIT;
gboolean retval = FALSE;
g_return_val_if_fail (CLUTTER_IS_SCRIPT (script), FALSE);
@ -1662,7 +1662,7 @@ apply_layout_properties (ClutterScript *script,
for (l = properties; l != NULL; l = l->next)
{
PropertyInfo *pinfo = l->data;
GValue value = { 0, };
GValue value = G_VALUE_INIT;
gboolean res = FALSE;
const gchar *name;
@ -1762,7 +1762,7 @@ apply_child_properties (ClutterScript *script,
for (l = properties; l != NULL; l = l->next)
{
PropertyInfo *pinfo = l->data;
GValue value = { 0, };
GValue value = G_VALUE_INIT;
gboolean res = FALSE;
const gchar *name;