mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-01-26 10:03:34 +03:00
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
This commit is contained in:
parent
11ce4004d8
commit
aac7c68e87
@ -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
|
||||
|
1
c14n.c
1
c14n.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);
|
||||
/*
|
||||
|
6
xpath.c
6
xpath.c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user