mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 08:53:20 +00:00
ICU-4288 Fix some compiler warnings.
X-SVN-Rev: 18206
This commit is contained in:
parent
208c96caca
commit
86296b2eae
3 changed files with 2 additions and 6 deletions
|
@ -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) {
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue