fix a few warning raised by gcc-4.1 and latests changes Daniel

* c14n.c encoding.c xmlschemas.c xpath.c xpointer.c: fix a few
  warning raised by gcc-4.1 and latests changes
Daniel
diff --git a/ChangeLog b/ChangeLog
index 65bd105..cca2cb3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Fri Mar 10 08:40:55 EST 2006 Daniel Veillard <daniel@veillard.com>
+
+	* c14n.c encoding.c xmlschemas.c xpath.c xpointer.c: fix a few
+	  warning raised by gcc-4.1 and latests changes
+
 Fri Mar 10 01:34:42 CET 2006 Daniel Veillard <daniel@veillard.com>
 
 	* runtest.c schematron.c testAutomata.c tree.c valid.c xinclude.c
diff --git a/c14n.c b/c14n.c
index 33a5803..bb7c9ba 100644
--- a/c14n.c
+++ b/c14n.c
@@ -1139,6 +1139,7 @@
     /* 
      * Save ns_rendered stack position
      */
+    memset(&state, 0, sizeof(state));
     xmlC14NVisibleNsStackSave(ctx->ns_rendered, &state);
 
     if (visible) {	
diff --git a/encoding.c b/encoding.c
index 7fa97d9..dc1c205 100644
--- a/encoding.c
+++ b/encoding.c
@@ -126,7 +126,6 @@
     unsigned char* outend = out + *outlen;
     const unsigned char* inend;
     unsigned int c;
-    int bits;
 
     inend = in + (*inlen);
     while ((in < inend) && (out - outstart + 5 < *outlen)) {
diff --git a/xmlschemas.c b/xmlschemas.c
index d8824de..2059196 100644
--- a/xmlschemas.c
+++ b/xmlschemas.c
@@ -2825,7 +2825,8 @@
     if (attr == NULL) {
 	xmlSchemaPErrExt(ctxt, NULL, error, NULL, NULL, NULL,
 	    "%s, attribute '%s': %s.\n",
-	    BAD_CAST des, "Unknown", (const xmlChar *) msg, NULL, NULL);
+	    BAD_CAST des, (const xmlChar *) "Unknown",
+	    (const xmlChar *) msg, NULL, NULL);
     } else {
 	xmlSchemaPErrExt(ctxt, (xmlNodePtr) attr, error, NULL, NULL, NULL,
 	    "%s, attribute '%s': %s.\n",
@@ -8000,7 +8001,7 @@
 	* field.
 	*/
 	if (attr == NULL)
-	    nsList == NULL;
+	    nsList = NULL;
 	else
 	    nsList = xmlGetNsList(attr->doc, attr->parent);
 	/*
diff --git a/xpath.c b/xpath.c
index 481ef21..6734145 100644
--- a/xpath.c
+++ b/xpath.c
@@ -8872,9 +8872,9 @@
     } else {
 	xmlChar *name = NULL;
 	const xmlChar *prefix = NULL;
-	xmlXPathTestVal test;
+	xmlXPathTestVal test = (xmlXPathTestVal) 0;
 	xmlXPathAxisVal axis = (xmlXPathAxisVal) 0;
-	xmlXPathTypeVal type;
+	xmlXPathTypeVal type = (xmlXPathTypeVal) 0;
 	int op1;
 
 	/*
@@ -8937,8 +8937,6 @@
 
 	CHECK_ERROR;
 
-	type = (xmlXPathTypeVal) 0;
-	test = (xmlXPathTestVal) 0;
 	name = xmlXPathCompNodeTest(ctxt, &test, &type, &prefix, name);
 	if (test == 0)
 	    return;
diff --git a/xpointer.c b/xpointer.c
index 943cf21..5298fa5 100644
--- a/xpointer.c
+++ b/xpointer.c
@@ -2759,8 +2759,8 @@
  */
 void
 xmlXPtrStringRangeFunction(xmlXPathParserContextPtr ctxt, int nargs) {
-    int i, startindex, endindex, fendindex;
-    xmlNodePtr start, end, fend;
+    int i, startindex, endindex = 0, fendindex;
+    xmlNodePtr start, end = 0, fend;
     xmlXPathObjectPtr set;
     xmlLocationSetPtr oldset;
     xmlLocationSetPtr newset;