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/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;