From 845e5ab92c854f0f7863b83b7a8bd2e4df05422f Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Mon, 22 Sep 2003 16:11:02 +0000 Subject: [PATCH] ICU-3222 Fix a compiler warning X-SVN-Rev: 13157 --- icu4c/source/test/cintltst/custrtrn.c | 3 ++- icu4c/source/test/intltest/tztest.cpp | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/icu4c/source/test/cintltst/custrtrn.c b/icu4c/source/test/cintltst/custrtrn.c index aaa6d86712b..2d77e0a3101 100644 --- a/icu4c/source/test/cintltst/custrtrn.c +++ b/icu4c/source/test/cintltst/custrtrn.c @@ -746,4 +746,5 @@ Test_WCHART_LongString(){ /* close the bundle */ ures_close(theBundle); -} \ No newline at end of file +} + diff --git a/icu4c/source/test/intltest/tztest.cpp b/icu4c/source/test/intltest/tztest.cpp index 06802d53e3c..abd94a68917 100644 --- a/icu4c/source/test/intltest/tztest.cpp +++ b/icu4c/source/test/intltest/tztest.cpp @@ -1192,7 +1192,7 @@ void TimeZoneTest::TestCountries() { void TimeZoneTest::TestHistorical() { const int32_t H = U_MILLIS_PER_HOUR; struct { - char* id; + const char* id; int32_t time; // epoch seconds int32_t offset; // total offset (millis) } DATA[] = { @@ -1214,7 +1214,7 @@ void TimeZoneTest::TestHistorical() { }; for (int32_t i=0; DATA[i].id!=0; ++i) { - char* id = DATA[i].id; + const char* id = DATA[i].id; TimeZone *tz = TimeZone::createTimeZone(id); UnicodeString s; if (tz == 0) {