warning message cleanup. Now compiles warning-free, all tests passed.
* xmlschemas.c, xmlschemastypes.c: warning message cleanup.
Now compiles warning-free, all tests passed.
* SAX2.c: small change to comments for documentation.
No change to logic.
diff --git a/xmlschemas.c b/xmlschemas.c
index 32eb79f..1429f51 100644
--- a/xmlschemas.c
+++ b/xmlschemas.c
@@ -7304,6 +7304,7 @@
"Atomic simple type \"%s\": the facet \"%s\" "
"is not allowed on primitive type \"%s\".\n",
type->name,
+ (const xmlChar *)
xmlSchemaFacetTypeToString(facet->type),
BAD_CAST primitive->name, NULL, NULL);
@@ -9804,21 +9805,22 @@
xmlSchemaVErr(ctxt, ctxt->cur, ret,
"The value with length \"%s\" is not "
"facet-valid with respect to length = \"%s\".\n",
- l, fl);
+ (const xmlChar *)l, (const xmlChar *)fl);
} else if (ret == XML_SCHEMAV_CVC_MINLENGTH_VALID) {
xmlSchemaVErr(ctxt, ctxt->cur, ret,
"The value with length \"%s\" is not "
"facet-valid with respect to minLength = \"%s\".\n",
- l, fl);
+ (const xmlChar *)l, (const xmlChar *)fl);
} else if (ret == XML_SCHEMAV_CVC_MAXLENGTH_VALID) {
xmlSchemaVErr(ctxt, ctxt->cur, ret,
"The value with length \"%s\" is not "
"facet-valid with respect to maxLength = \"%s\".\n",
- l, fl);
+ (const xmlChar *)l, (const xmlChar *)fl);
} else {
xmlSchemaVErr(ctxt, ctxt->cur, ret,
"The value is not valid with respect "
"to the facet \"%s\".\n",
+ (const xmlChar *)
xmlSchemaFacetTypeToString(facet->type),
NULL);
}