summaryrefslogtreecommitdiff
path: root/backends/xml-entry.c
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2015-10-14 10:09:49 +0100
committerRobert Ancell <robert.ancell@canonical.com>2015-10-14 10:09:49 +0100
commit0780809731c8ab1c364202b1900d3df106b28626 (patch)
treeab9010535a69863d4cb8f50b164f38efabaa5183 /backends/xml-entry.c
parent4ef012c2a62d9abd759adb3aeb9d3b9cee17f721 (diff)
downloadgconf-master.tar.gz
Fix some compiler warningsHEADmaster
Diffstat (limited to 'backends/xml-entry.c')
-rw-r--r--backends/xml-entry.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/backends/xml-entry.c b/backends/xml-entry.c
index 738883f5..129c032b 100644
--- a/backends/xml-entry.c
+++ b/backends/xml-entry.c
@@ -498,10 +498,8 @@ node_set_schema_value(xmlNodePtr node,
if (gconf_schema_get_long_desc (sc))
{
- xmlNodePtr ld_node;
-
- ld_node = xmlNewChild(found, NULL, (xmlChar *)"longdesc",
- (xmlChar *)gconf_schema_get_long_desc (sc));
+ xmlNewChild(found, NULL, (xmlChar *)"longdesc",
+ (xmlChar *)gconf_schema_get_long_desc (sc));
}
}
@@ -536,7 +534,6 @@ node_set_value(xmlNodePtr node, GConfValue* value)
break;
case GCONF_VALUE_STRING:
{
- xmlNodePtr child;
xmlChar* encoded;
free_childs(node);
@@ -544,8 +541,8 @@ node_set_value(xmlNodePtr node, GConfValue* value)
encoded = xmlEncodeEntitiesReentrant(node->doc,
(xmlChar *)gconf_value_get_string(value));
- child = xmlNewChild(node, NULL, (xmlChar *)"stringvalue",
- encoded);
+ xmlNewChild(node, NULL, (xmlChar *)"stringvalue",
+ encoded);
xmlFree(encoded);
}
break;