[libxml2] Remove a pedantic warning



commit b468f7444c86418258c4c051ff41361f9461c721
Author: Daniel Veillard <veillard redhat com>
Date:   Mon Aug 24 18:45:33 2009 +0200

    Remove a pedantic warning

 HTMLparser.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/HTMLparser.c b/HTMLparser.c
index d3c09d6..65571ae 100644
--- a/HTMLparser.c
+++ b/HTMLparser.c
@@ -1386,6 +1386,8 @@ htmlIsAutoClosed(htmlDocPtr doc, htmlNodePtr elem) {
  */
 static void
 htmlCheckImplied(htmlParserCtxtPtr ctxt, const xmlChar *newtag) {
+    int i;
+
     if (!htmlOmittedDefaultValue)
 	return;
     if (xmlStrEqual(newtag, BAD_CAST"html"))
@@ -1422,7 +1424,6 @@ htmlCheckImplied(htmlParserCtxtPtr ctxt, const xmlChar *newtag) {
             /* we already saw or generated a <body> before */
             return;
         }
-	int i;
 	for (i = 0;i < ctxt->nameNr;i++) {
 	    if (xmlStrEqual(ctxt->nameTab[i], BAD_CAST"body")) {
 		return;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]