ICU-2943 fix some compiler warnings
X-SVN-Rev: 13782
This commit is contained in:
parent
e24c23b9db
commit
9d5aa67505
@ -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);
|
||||
|
@ -331,7 +331,6 @@ void IntlCalendarTest::TestJapanese() {
|
||||
}
|
||||
|
||||
void IntlCalendarTest::TestBuddhistFormat() {
|
||||
Calendar *cal;
|
||||
UErrorCode status = U_ZERO_ERROR;
|
||||
|
||||
// Test simple parse/format with adopt
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user