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: 17303
This commit is contained in:
parent
6fb21fed8a
commit
cdf4eef48c
4 changed files with 2 additions and 5 deletions
icu4c/source
|
@ -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;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue