aboutsummaryrefslogtreecommitdiffstats
path: root/xmlschemastypes.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2002-09-24 14:13:13 +0000
committerDaniel Veillard <veillard@src.gnome.org>2002-09-24 14:13:13 +0000
commit118aed78f360f51d182770e62b251ef324707aa2 (patch)
tree7663107b890922ac71f466bc749f1f9dd45104c0 /xmlschemastypes.c
parent7233615a61a3636d8354e4e62b5c041f5fe0cbaf (diff)
downloadandroid_external_libxml2-118aed78f360f51d182770e62b251ef324707aa2.tar.gz
android_external_libxml2-118aed78f360f51d182770e62b251ef324707aa2.tar.bz2
android_external_libxml2-118aed78f360f51d182770e62b251ef324707aa2.zip
fixed the data callback on transition functionality which was broken when
* xmlregexp.c: fixed the data callback on transition functionality which was broken when using the compact form * result/schemas/*: updated the results, less verbose, all tests pass like before * DOCBparser.c testAutomata.c testC14N.c testSchemas.c testThreads.c testXPath.c valid.c xinclude.c xmllint.c xmlregexp.c xmlschemas.c xmlschemastypes.c xpath.c python/libxml.c: removed a bunch of annoying warnings * xpath.c: try to provide better error report when possible Daniel
Diffstat (limited to 'xmlschemastypes.c')
-rw-r--r--xmlschemastypes.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/xmlschemastypes.c b/xmlschemastypes.c
index 8dc4d115..90814eee 100644
--- a/xmlschemastypes.c
+++ b/xmlschemastypes.c
@@ -668,8 +668,8 @@ _xmlSchemaParseTimeZone (xmlSchemaValDatePtr dt, const xmlChar **str) {
* and -1 in case of internal or API error.
*/
static int
-xmlSchemaValidateDates (xmlSchemaTypePtr type, const xmlChar *dateTime,
- xmlSchemaValPtr *val) {
+xmlSchemaValidateDates (ATTRIBUTE_UNUSED xmlSchemaTypePtr type,
+ const xmlChar *dateTime, xmlSchemaValPtr *val) {
xmlSchemaValPtr dt;
int ret;
const xmlChar *cur = dateTime;
@@ -827,8 +827,8 @@ error:
* and -1 in case of internal or API error.
*/
static int
-xmlSchemaValidateDuration (xmlSchemaTypePtr type, const xmlChar *duration,
- xmlSchemaValPtr *val) {
+xmlSchemaValidateDuration (ATTRIBUTE_UNUSED xmlSchemaTypePtr type,
+ const xmlChar *duration, xmlSchemaValPtr *val) {
const xmlChar *cur = duration;
xmlSchemaValPtr dur;
int isneg = 0;
@@ -1792,7 +1792,8 @@ xmlSchemaCompareValues(xmlSchemaValPtr x, xmlSchemaValPtr y) {
* number otherwise and -1 in case of internal or API error.
*/
int
-xmlSchemaValidateFacet(xmlSchemaTypePtr base, xmlSchemaFacetPtr facet,
+xmlSchemaValidateFacet(ATTRIBUTE_UNUSED xmlSchemaTypePtr base,
+ xmlSchemaFacetPtr facet,
const xmlChar *value, xmlSchemaValPtr val)
{
int ret;
@@ -1854,7 +1855,7 @@ xmlSchemaValidateFacet(xmlSchemaTypePtr base, xmlSchemaFacetPtr facet,
if ((facet->val != NULL) &&
(facet->val->type == XML_SCHEMAS_DECIMAL) &&
(facet->val->value.decimal.frac == 0)) {
- int len;
+ unsigned int len;
if (facet->val->value.decimal.sign == 1)
return(1);