summaryrefslogtreecommitdiff
path: root/xmlschemas.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2006-03-10 13:40:16 +0000
committerDaniel Veillard <veillard@src.gnome.org>2006-03-10 13:40:16 +0000
commitaac7c68e87d00732b319698723de1ec43252fb01 (patch)
tree3619c17f4b86099058e751a72b608ee9aa3ced64 /xmlschemas.c
parent11ce4004d86bb4b317c48b7d5124ba33e40e10f5 (diff)
downloadlibxml2-aac7c68e87d00732b319698723de1ec43252fb01.tar.gz
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
Diffstat (limited to 'xmlschemas.c')
-rw-r--r--xmlschemas.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/xmlschemas.c b/xmlschemas.c
index d8824de7..20591963 100644
--- a/xmlschemas.c
+++ b/xmlschemas.c
@@ -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);
/*