ICU-4707 Fix some compiler warnings.

X-SVN-Rev: 19445
This commit is contained in:
George Rhoten 2006-03-26 00:32:27 +00:00
parent 81b211ef90
commit 401f909a49
3 changed files with 6 additions and 4 deletions

View File

@ -1,7 +1,7 @@
/*
*******************************************************************************
*
* Copyright (C) 2003-2004, International Business Machines
* Copyright (C) 2003-2006, International Business Machines
* Corporation and others. All Rights Reserved.
*
*******************************************************************************
@ -325,6 +325,7 @@ ConversionTest::TestGetUnicodeSet() {
ParsePosition pos;
UnicodeSet cnvSet, mapSet, mapnotSet, diffSet;
UnicodeSet *cnvSetPtr = &cnvSet;
UConverter *cnv;
TestDataModule *dataModule;
@ -395,7 +396,7 @@ ConversionTest::TestGetUnicodeSet() {
continue;
}
ucnv_getUnicodeSet(cnv, (USet *)&cnvSet, (UConverterUnicodeSet)which, &errorCode);
ucnv_getUnicodeSet(cnv, (USet *)cnvSetPtr, (UConverterUnicodeSet)which, &errorCode);
ucnv_close(cnv);
if(U_FAILURE(errorCode)) {

View File

@ -1703,6 +1703,7 @@ U_CDECL_END
void
BasicNormalizerTest::TestSkippable() {
UnicodeSet starts, diff, skipSets[UNORM_MODE_COUNT], expectSets[UNORM_MODE_COUNT];
UnicodeSet *startsPtr = &starts;
UnicodeString s, pattern;
UChar32 start, limit, rangeStart, rangeEnd;
int32_t i, range, count;
@ -1712,7 +1713,7 @@ BasicNormalizerTest::TestSkippable() {
/* build NF*Skippable sets from runtime data */
status=U_ZERO_ERROR;
USetAdder sa = {
(USet *)&starts,
(USet *)startsPtr,
_set_add,
_set_addRange,
_set_addString,

View File

@ -963,7 +963,7 @@ void TimeZoneRegressionTest::Test4176686() {
"DateFormat.format(dst)/dst zone", fmt2->format(dst, l), "GMT+02:15",
};
for (int idx=0; idx<ARRAY_LENGTH(DATA); idx+=3) {
for (int32_t idx=0; idx<(int32_t)ARRAY_LENGTH(DATA); idx+=3) {
if (DATA[idx+1]!=(DATA[idx+2])) {
errln("FAIL: " + DATA[idx] + " -> " + DATA[idx+1] + ", exp " + DATA[idx+2]);
}