mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-10 07:39:16 +00:00
ICU-6472 Clean some compiler warnings and other fluff
X-SVN-Rev: 24430
This commit is contained in:
parent
f7964455c2
commit
cd83d25daf
5 changed files with 12 additions and 7 deletions
|
@ -109,7 +109,7 @@ void BreakTransliterator::handleTransliterate(Replaceable& text, UTransPosition&
|
|||
if ((U_MASK(type) & (U_GC_L_MASK | U_GC_M_MASK)) == 0) continue;
|
||||
|
||||
boundaries->addElement(boundary, status);
|
||||
//System.out.println(boundary);
|
||||
// printf("Boundary at %d\n", boundary);
|
||||
}
|
||||
|
||||
int delta = 0;
|
||||
|
|
|
@ -495,6 +495,8 @@ int32_t JapaneseCalendar::handleGetLimit(UCalendarDateFields field, ELimitType l
|
|||
case UCAL_LIMIT_COUNT: //added to avoid warning
|
||||
case UCAL_LIMIT_MAXIMUM:
|
||||
return GregorianCalendar::handleGetLimit(UCAL_YEAR, UCAL_LIMIT_MAXIMUM) - kEraInfo[kCurrentEra].year;
|
||||
default:
|
||||
return 1; // Error condition, invalid limitType
|
||||
}
|
||||
}
|
||||
default:
|
||||
|
|
|
@ -1574,12 +1574,10 @@ UBool RegexCompile::doParseActions(int32_t action)
|
|||
// Have encountered the ']' that closes a set.
|
||||
// Force the evaluation of any pending operations within this set,
|
||||
// leave the completed set on the top of the set stack.
|
||||
{
|
||||
setEval(setEnd);
|
||||
int32_t setOp = fSetOpStack.popi();
|
||||
U_ASSERT(setOp==setStart);
|
||||
U_ASSERT(fSetOpStack.peeki()==setStart);
|
||||
fSetOpStack.popi();
|
||||
break;
|
||||
}
|
||||
|
||||
case doSetFinish:
|
||||
{
|
||||
|
|
|
@ -149,7 +149,8 @@ getTimeZoneTranslationType(TimeZoneTranslationTypeIndex typeIdx) {
|
|||
case ZSIDX_SHORT_DAYLIGHT:
|
||||
type = DAYLIGHT_SHORT;
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return type;
|
||||
}
|
||||
|
@ -1097,6 +1098,8 @@ ZoneStringFormat::getString(const UnicodeString &tzid, TimeZoneTranslationTypeIn
|
|||
zstrings->getString(typeIdx, result);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1122,6 +1125,8 @@ ZoneStringFormat::getString(const UnicodeString &tzid, TimeZoneTranslationTypeIn
|
|||
mzstrings->getString(typeIdx, result);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
*******************************************************************************
|
||||
*
|
||||
* File wrtxml.c
|
||||
* File wrtxml.cpp
|
||||
*
|
||||
* Modification History:
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue