From cdf4eef48c8a6226e0aa522a043a99b8a2d4e5a9 Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Wed, 9 Mar 2005 05:45:01 +0000 Subject: [PATCH] ICU-4288 Fix some compiler warnings. X-SVN-Rev: 17303 --- icu4c/source/common/rbbi.cpp | 2 +- icu4c/source/common/ubidi_props.c | 1 - icu4c/source/common/ucase.c | 1 - icu4c/source/i18n/rbt_pars.cpp | 3 +-- 4 files changed, 2 insertions(+), 5 deletions(-) diff --git a/icu4c/source/common/rbbi.cpp b/icu4c/source/common/rbbi.cpp index bf48b5fd979..ba818c3c0e9 100644 --- a/icu4c/source/common/rbbi.cpp +++ b/icu4c/source/common/rbbi.cpp @@ -650,7 +650,7 @@ UBool RuleBasedBreakIterator::isBoundary(int32_t offset) { * @return The current iteration position. */ int32_t RuleBasedBreakIterator::current(void) const { - return (fText != NULL) ? fText->getIndex() : BreakIterator::DONE; + return (fText != NULL) ? fText->getIndex() : (int32_t)BreakIterator::DONE; } //======================================================================= diff --git a/icu4c/source/common/ubidi_props.c b/icu4c/source/common/ubidi_props.c index 7a7b6fb47d9..0a4cf48d678 100644 --- a/icu4c/source/common/ubidi_props.c +++ b/icu4c/source/common/ubidi_props.c @@ -258,7 +258,6 @@ ubidi_getDummy(UErrorCode *pErrorCode) { return bdp; } else /* bdp==NULL */ { /* create the dummy object */ - UBiDiProps *bdp; int32_t *indexes; bdp=(UBiDiProps *)uprv_malloc(sizeof(UBiDiProps)+UBIDI_IX_TOP*4+UTRIE_DUMMY_SIZE); diff --git a/icu4c/source/common/ucase.c b/icu4c/source/common/ucase.c index 55dde07a27f..29ac0667fbb 100644 --- a/icu4c/source/common/ucase.c +++ b/icu4c/source/common/ucase.c @@ -262,7 +262,6 @@ ucase_getDummy(UErrorCode *pErrorCode) { return csp; } else /* csp==NULL */ { /* create the dummy object */ - UCaseProps *csp; int32_t *indexes; csp=(UCaseProps *)uprv_malloc(sizeof(UCaseProps)+UCASE_IX_TOP*4+UTRIE_DUMMY_SIZE); diff --git a/icu4c/source/i18n/rbt_pars.cpp b/icu4c/source/i18n/rbt_pars.cpp index 82d966963ec..4ac7cf440b3 100644 --- a/icu4c/source/i18n/rbt_pars.cpp +++ b/icu4c/source/i18n/rbt_pars.cpp @@ -1547,11 +1547,10 @@ U_NAMESPACE_END U_CAPI int32_t utrans_stripRules(const UChar *source, int32_t sourceLen, UChar *target, UErrorCode *status) { - const UChar *sourceStart = source; + //const UChar *sourceStart = source; const UChar *targetStart = target; const UChar *sourceLimit = source+sourceLen; UChar *targetLimit = target+sourceLen; - uint32_t isError = 0; UChar32 c = 0; UBool quoted = FALSE; int32_t index;