ICU-2943 fix some compiler warnings

X-SVN-Rev: 13782
This commit is contained in:
Steven R. Loomis 2003-11-20 00:31:33 +00:00
parent e24c23b9db
commit 9d5aa67505
3 changed files with 1 additions and 4 deletions

View File

@ -1776,10 +1776,8 @@ void CalendarTest::TestYWOY()
{
UnicodeString str;
UErrorCode status = U_ZERO_ERROR;
int32_t i;
GregorianCalendar cal(status);
//SimpleDateFormat fmt(UnicodeString("EEE MMM dd yyyy', WOY' w"), status);
CHECK(status, "Fail: Cannot construct calendar/format");
cal.setFirstDayOfWeek(UCAL_SUNDAY);

View File

@ -331,7 +331,6 @@ void IntlCalendarTest::TestJapanese() {
}
void IntlCalendarTest::TestBuddhistFormat() {
Calendar *cal;
UErrorCode status = U_ZERO_ERROR;
// Test simple parse/format with adopt

View File

@ -282,7 +282,7 @@ TimeZoneTest::TestPRTOffset()
int32_t expectedHour = -4;
double expectedOffset = (((double)expectedHour) * millisPerHour);
double foundOffset = tz->getRawOffset();
int32_t foundHour = foundOffset / millisPerHour;
int32_t foundHour = (int32_t)foundOffset / millisPerHour;
if (expectedOffset != foundOffset) {
errln("FAIL: Offset for PRT should be %d, found %d", expectedHour, foundHour);
} else {