Commit aac7c68e authored by Daniel Veillard's avatar Daniel Veillard

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
parent 11ce4004
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
......
......@@ -1139,6 +1139,7 @@ xmlC14NProcessElementNode(xmlC14NCtxPtr ctx, xmlNodePtr cur, int visible)
/*
* Save ns_rendered stack position
*/
memset(&state, 0, sizeof(state));
xmlC14NVisibleNsStackSave(ctx->ns_rendered, &state);
if (visible) {
......
......@@ -126,7 +126,6 @@ asciiToUTF8(unsigned char* out, int *outlen,
unsigned char* outend = out + *outlen;
const unsigned char* inend;
unsigned int c;
int bits;
inend = in + (*inlen);
while ((in < inend) && (out - outstart + 5 < *outlen)) {
......
......@@ -2825,7 +2825,8 @@ xmlSchemaPCustomAttrErr(xmlSchemaParserCtxtPtr ctxt,
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 @@ xmlSchemaCheckCSelectorXPath(xmlSchemaParserCtxtPtr ctxt,
* field.
*/
if (attr == NULL)
nsList == NULL;
nsList = NULL;
else
nsList = xmlGetNsList(attr->doc, attr->parent);
/*
......
......@@ -8872,9 +8872,9 @@ xmlXPathCompStep(xmlXPathParserContextPtr ctxt) {
} 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 @@ xmlXPathCompStep(xmlXPathParserContextPtr ctxt) {
CHECK_ERROR;
type = (xmlXPathTypeVal) 0;
test = (xmlXPathTestVal) 0;
name = xmlXPathCompNodeTest(ctxt, &test, &type, &prefix, name);
if (test == 0)
return;
......
......@@ -2759,8 +2759,8 @@ xmlXPtrGetEndPoint(xmlXPathObjectPtr obj, xmlNodePtr *node, int *indx) {
*/
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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment