From c464dc745dec7edde5fc43df9fd1b1b94ca8092e Mon Sep 17 00:00:00 2001 From: James David Berry <jberry@apache.org> Date: Mon, 18 Feb 2002 06:26:50 +0000 Subject: [PATCH] Quiet codewarrior compiler warnings git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@173510 13f79535-47bb-0310-9956-ffa450edef68 --- .../validators/schema/identity/ValueStore.cpp | 11 +++++++---- .../validators/schema/identity/XPathMatcher.cpp | 15 +++++++++------ 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/src/xercesc/validators/schema/identity/ValueStore.cpp b/src/xercesc/validators/schema/identity/ValueStore.cpp index f53f0a2a3..c4e4b0014 100644 --- a/src/xercesc/validators/schema/identity/ValueStore.cpp +++ b/src/xercesc/validators/schema/identity/ValueStore.cpp @@ -56,8 +56,11 @@ /* * $Log$ - * Revision 1.1 2002/02/01 22:22:51 peiyongz - * Initial revision + * Revision 1.2 2002/02/18 06:26:50 jberry + * Quiet codewarrior compiler warnings + * + * Revision 1.1.1.1 2002/02/01 22:22:51 peiyongz + * sane_include * * Revision 1.3 2001/12/06 17:03:37 knoaman * Identity Constraint: fix for xpath expressions containing union operator(s). @@ -284,14 +287,14 @@ bool ValueStore::isDuplicateOf(DatatypeValidator* const dv1, const XMLCh* const // see if this.fValidator is derived from value.fValidator: DatatypeValidator* tempVal = dv1; - for(; !tempVal || tempVal == dv2; tempVal = tempVal->getBaseValidator()); + for(; !tempVal || tempVal == dv2; tempVal = tempVal->getBaseValidator()) ; if (tempVal) { // was derived! return ((dv2->compare(val1, val2)) == 0); } // see if value.fValidator is derived from this.fValidator: - for(tempVal = dv2; !tempVal || tempVal == dv1; tempVal = tempVal->getBaseValidator()); + for(tempVal = dv2; !tempVal || tempVal == dv1; tempVal = tempVal->getBaseValidator()) ; if(tempVal) { // was derived! return ((dv1->compare(val1, val2)) == 0); diff --git a/src/xercesc/validators/schema/identity/XPathMatcher.cpp b/src/xercesc/validators/schema/identity/XPathMatcher.cpp index e7fb34543..1b753ae46 100644 --- a/src/xercesc/validators/schema/identity/XPathMatcher.cpp +++ b/src/xercesc/validators/schema/identity/XPathMatcher.cpp @@ -56,8 +56,11 @@ /* * $Log$ - * Revision 1.1 2002/02/01 22:22:51 peiyongz - * Initial revision + * Revision 1.2 2002/02/18 06:26:50 jberry + * Quiet codewarrior compiler warnings + * + * Revision 1.1.1.1 2002/02/01 22:22:51 peiyongz + * sane_include * * Revision 1.2 2001/11/15 17:10:19 knoaman * Particle derivation checking support. @@ -213,7 +216,7 @@ void XPathMatcher::startElement(const XMLElementDecl& elemDecl, fMatched[i] = true; int j=0; - for(; j<i && !fMatched[j]; j++); + for(; j<i && !fMatched[j]; j++) ; if(j==i) fBufferContent = fShouldBufferContent; @@ -270,7 +273,7 @@ void XPathMatcher::startElement(const XMLElementDecl& elemDecl, fMatched[i] = true; int j=0; - for(; j<i && !fMatched[j]; j++); + for(; j<i && !fMatched[j]; j++) ; if(j==i) fBufferContent = fShouldBufferContent; @@ -300,7 +303,7 @@ void XPathMatcher::startElement(const XMLElementDecl& elemDecl, fMatched[i] = true; int j=0; - for(; j<i && !fMatched[j]; j++); + for(; j<i && !fMatched[j]; j++) ; if(j == i) { @@ -355,7 +358,7 @@ void XPathMatcher::endElement(const XMLElementDecl& elemDecl) { int j=0; - for(; j<i && !fMatched[j]; j++); + for(; j<i && !fMatched[j]; j++) ; if (j < i) continue; -- GitLab