diff --git a/icu4c/source/test/intltest/testidna.cpp b/icu4c/source/test/intltest/testidna.cpp index 68fa3930c3..361789d5c3 100644 --- a/icu4c/source/test/intltest/testidna.cpp +++ b/icu4c/source/test/intltest/testidna.cpp @@ -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; diff --git a/icu4c/source/test/intltest/transrt.cpp b/icu4c/source/test/intltest/transrt.cpp index 7190a9d0c5..ac10d15f12 100644 --- a/icu4c/source/test/intltest/transrt.cpp +++ b/icu4c/source/test/intltest/transrt.cpp @@ -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 diff --git a/icu4c/source/test/intltest/tztest.cpp b/icu4c/source/test/intltest/tztest.cpp index e969cef5f0..af2f869cd1 100644 --- a/icu4c/source/test/intltest/tztest.cpp +++ b/icu4c/source/test/intltest/tztest.cpp @@ -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);