From 06c93b75095ddca6ba80e45dd381bb69cd04b9f6 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Mon, 15 Mar 2010 16:08:44 +0100 Subject: [PATCH] Remove a few warnings --- HTMLparser.c | 2 -- SAX2.c | 3 ++- xinclude.c | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/HTMLparser.c b/HTMLparser.c index 3e2467c5..42dc776a 100644 --- a/HTMLparser.c +++ b/HTMLparser.c @@ -4291,8 +4291,6 @@ htmlParseElementInternal(htmlParserCtxtPtr ctxt) { const htmlElemDesc * info; htmlParserNodeInfo node_info; int failed; - int depth; - const xmlChar *oldptr; if ((ctxt == NULL) || (ctxt->input == NULL)) { htmlParseErr(ctxt, XML_ERR_INTERNAL_ERROR, diff --git a/SAX2.c b/SAX2.c index 04c0e304..84c1f004 100644 --- a/SAX2.c +++ b/SAX2.c @@ -1108,7 +1108,8 @@ xmlSAX2AttributeInternal(void *ctx, const xmlChar *fullname, #ifdef LIBXML_HTML_ENABLED if ((ctxt->html) && (value == NULL) && (htmlIsBooleanAttr(fullname))) { - nval = value = xmlStrdup(fullname); + nval = xmlStrdup(fullname); + value = (const xmlChar *) nval; } else #endif { diff --git a/xinclude.c b/xinclude.c index 674db9cf..2916ffaa 100644 --- a/xinclude.c +++ b/xinclude.c @@ -2479,7 +2479,6 @@ xmlXIncludeProcessTreeFlagsData(xmlNodePtr tree, int flags, void *data) { */ int xmlXIncludeProcessFlagsData(xmlDocPtr doc, int flags, void *data) { - xmlXIncludeCtxtPtr ctxt; xmlNodePtr tree; if (doc == NULL)