diff --git a/icu4c/source/i18n/dtfmtsym.cpp b/icu4c/source/i18n/dtfmtsym.cpp index a4e36fe3b9b..30ebbebcf81 100644 --- a/icu4c/source/i18n/dtfmtsym.cpp +++ b/icu4c/source/i18n/dtfmtsym.cpp @@ -425,7 +425,7 @@ DateFormatSymbols::getShortMonths(int32_t &count) const const UnicodeString* DateFormatSymbols::getMonths(int32_t &count, DtContextType context, DtWidthType width ) const { - UnicodeString *returnValue; + UnicodeString *returnValue = NULL; switch (context) { case FORMAT : @@ -481,7 +481,7 @@ DateFormatSymbols::getShortWeekdays(int32_t &count) const const UnicodeString* DateFormatSymbols::getWeekdays(int32_t &count, DtContextType context, DtWidthType width) const { - UnicodeString *returnValue; + UnicodeString *returnValue = NULL; switch (context) { case FORMAT : switch(width) { diff --git a/icu4c/source/i18n/rbt_pars.cpp b/icu4c/source/i18n/rbt_pars.cpp index 91f486fcc04..edb4a9edf79 100644 --- a/icu4c/source/i18n/rbt_pars.cpp +++ b/icu4c/source/i18n/rbt_pars.cpp @@ -876,7 +876,6 @@ void TransliteratorParser::parseRules(const UnicodeString& rule, status = U_ZERO_ERROR; UBool parsingIDs = TRUE; - UBool inBeginEndBlock = FALSE; int32_t ruleCount = 0; if (dataVector == NULL) diff --git a/icu4c/source/i18n/ucol_sit.cpp b/icu4c/source/i18n/ucol_sit.cpp index 33cd3a734b8..9d52426a497 100644 --- a/icu4c/source/i18n/ucol_sit.cpp +++ b/icu4c/source/i18n/ucol_sit.cpp @@ -1030,10 +1030,8 @@ static UBool U_CALLCONV _processSpecials(const void *context, UChar32 start, UChar32 limit, uint32_t CE) { UErrorCode *status = ((contContext *)context)->status; - USet *contractions = ((contContext *)context)->conts; USet *expansions = ((contContext *)context)->expansions; USet *removed = ((contContext *)context)->removedContractions; - const UCollator *coll = ((contContext *)context)->coll; UBool addPrefixes = ((contContext *)context)->addPrefixes; UChar contraction[internalBufferSize]; if(isSpecial(CE)) { @@ -1088,7 +1086,6 @@ ucol_getContractions( const UCollator *coll, USet *contractions, UErrorCode *status) { - int32_t noConts = 0; ucol_getContractionsAndExpansions(coll, contractions, NULL, FALSE, status); return uset_getItemCount(contractions); }