iscsi, ttxml: fix warning [-Wunused-but-set-variable]
[ccan] / ccan / ttxml / ttxml.c
index ffda34b832621d480203ee64fa60c0291700b117..410ac73a5eab8016bf217ed871f86fedf7f41842 100644 (file)
@@ -278,16 +278,14 @@ xml_read_attr_malloc:
  */
 static XmlNode* xml_parse(struct XMLBUF *xml)
 {
-       int offset;
        int toff;
        char **tmp;
        char *stmp;
        XmlNode **this, *ret = NULL;
-       
+
        this = &ret;
 
        xml_skip(xml, XML_SPACE);       // skip whitespace
-       offset=0;
        while( (xml->read_index < xml->len) || !xml->eof )
        {
                switch(is_special(xml_peek(xml)))