Silence a bunch of -Wunused-but-set-variable warnings

Signed-off-by: David Zeuthen <davidz@redhat.com>
This commit is contained in:
David Zeuthen
2011-04-08 15:44:25 -04:00
parent 23818d1e61
commit 0729260141
23 changed files with 52 additions and 62 deletions

View File

@@ -1525,6 +1525,8 @@ parse_value_from_blob (GMemoryInputStream *mis,
g_free (s);
}
}
#else
is_leaf = is_leaf; /* To avoid -Wunused-but-set-variable */
#endif /* DEBUG_SERIALIZER */
/* sink the reference */
@@ -2151,12 +2153,9 @@ append_body_to_blob (GVariant *value,
GDataOutputStream *dos,
GError **error)
{
gboolean ret;
GVariant *item;
GVariantIter iter;
ret = FALSE;
if (!g_variant_is_of_type (value, G_VARIANT_TYPE_TUPLE))
{
g_set_error (error,