From 690b973b5f5d5833298fbb943b8f3697057f1dd2 Mon Sep 17 00:00:00 2001 From: "heikki%netscape.com" Date: Fri, 22 Mar 2002 00:03:13 +0000 Subject: [PATCH] Bug 127490, fix compiler warning. r=vidur, sr=jband, a=asa. --- extensions/webservices/schema/src/nsSchemaLoader.cpp | 3 +++ extensions/xmlextras/schema/src/nsSchemaLoader.cpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/extensions/webservices/schema/src/nsSchemaLoader.cpp b/extensions/webservices/schema/src/nsSchemaLoader.cpp index c3fb576946e..7722500f535 100644 --- a/extensions/webservices/schema/src/nsSchemaLoader.cpp +++ b/extensions/webservices/schema/src/nsSchemaLoader.cpp @@ -2706,6 +2706,9 @@ nsSchemaLoader::ProcessFacet(nsSchema* aSchema, else if (aTagName == nsSchemaAtoms::sFractionDigits_atom) { facetType = nsISchemaFacet::FACET_TYPE_FRACTIONDIGITS; } + else { + return NS_ERROR_UNEXPECTED; + } facetInst->SetFacetType(facetType); nsAutoString valueStr; diff --git a/extensions/xmlextras/schema/src/nsSchemaLoader.cpp b/extensions/xmlextras/schema/src/nsSchemaLoader.cpp index c3fb576946e..7722500f535 100644 --- a/extensions/xmlextras/schema/src/nsSchemaLoader.cpp +++ b/extensions/xmlextras/schema/src/nsSchemaLoader.cpp @@ -2706,6 +2706,9 @@ nsSchemaLoader::ProcessFacet(nsSchema* aSchema, else if (aTagName == nsSchemaAtoms::sFractionDigits_atom) { facetType = nsISchemaFacet::FACET_TYPE_FRACTIONDIGITS; } + else { + return NS_ERROR_UNEXPECTED; + } facetInst->SetFacetType(facetType); nsAutoString valueStr;