ICU-4707 Fix some compiler warnings.
X-SVN-Rev: 19416
This commit is contained in:
parent
1e184956a8
commit
240c50c633
@ -1447,7 +1447,6 @@ void TestIDNA::runIndexedTest( int32_t index, UBool exec, const char* &name, cha
|
||||
if(exec){
|
||||
logln("TestSuite IDNA conf----"); logln();
|
||||
IdnaConfTest test;
|
||||
const char* name = "idnaconf";
|
||||
callTest(test, par);
|
||||
}
|
||||
break;
|
||||
|
@ -85,12 +85,6 @@ TransliteratorRoundTripTest::runIndexedTest(int32_t index, UBool exec,
|
||||
//--------------------------------------------------------------------
|
||||
static const UVersionInfo ICU_36 = {3,6,0,0};
|
||||
|
||||
static UBool isICUVersionAtLeast(const UVersionInfo x) {
|
||||
UVersionInfo v;
|
||||
u_getVersion(v);
|
||||
return (uprv_memcmp(v, x, U_MAX_VERSION_LENGTH) >= 0);
|
||||
}
|
||||
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
// TransliteratorPointer
|
||||
|
@ -994,15 +994,14 @@ TimeZoneTest::TestAliasedNames()
|
||||
|
||||
};
|
||||
|
||||
TimeZone::EDisplayType styles[] = { TimeZone::SHORT, TimeZone::LONG };
|
||||
UBool useDst[] = { FALSE, TRUE };
|
||||
int32_t noLoc = uloc_countAvailable();
|
||||
TimeZone::EDisplayType styles[] = { TimeZone::SHORT, TimeZone::LONG };
|
||||
UBool useDst[] = { FALSE, TRUE };
|
||||
int32_t noLoc = uloc_countAvailable();
|
||||
|
||||
UErrorCode status = U_ZERO_ERROR;
|
||||
int32_t i, j, k, loc;
|
||||
UnicodeString fromName, toName;
|
||||
TimeZone *from = NULL, *to = NULL;
|
||||
for(i = 0; i < sizeof(kData)/sizeof(kData[0]); i++) {
|
||||
for(i = 0; i < (int32_t)(sizeof(kData)/sizeof(kData[0])); i++) {
|
||||
from = TimeZone::createTimeZone(kData[i].from);
|
||||
to = TimeZone::createTimeZone(kData[i].to);
|
||||
if(!from->hasSameRules(*to)) {
|
||||
@ -1010,8 +1009,8 @@ TimeZoneTest::TestAliasedNames()
|
||||
}
|
||||
if(!quick) {
|
||||
for(loc = 0; loc < noLoc; loc++) {
|
||||
for(j = 0; j < sizeof(styles)/sizeof(styles[0]); j++) {
|
||||
for(k = 0; k < sizeof(useDst)/sizeof(useDst[0]); k++) {
|
||||
for(j = 0; j < (int32_t)(sizeof(styles)/sizeof(styles[0])); j++) {
|
||||
for(k = 0; k < (int32_t)(sizeof(useDst)/sizeof(useDst[0])); k++) {
|
||||
fromName.remove();
|
||||
toName.remove();
|
||||
from->getDisplayName(useDst[k], styles[j], uloc_getAvailable(loc), fromName);
|
||||
|
Loading…
Reference in New Issue
Block a user