ICU-6472 Clean some compiler warnings and other fluff

X-SVN-Rev: 24430
This commit is contained in:
Andy Heninger 2008-08-01 01:51:21 +00:00
parent f7964455c2
commit cd83d25daf
5 changed files with 12 additions and 7 deletions

View file

@ -109,7 +109,7 @@ void BreakTransliterator::handleTransliterate(Replaceable& text, UTransPosition&
if ((U_MASK(type) & (U_GC_L_MASK | U_GC_M_MASK)) == 0) continue;
boundaries->addElement(boundary, status);
//System.out.println(boundary);
// printf("Boundary at %d\n", boundary);
}
int delta = 0;

View file

@ -495,6 +495,8 @@ int32_t JapaneseCalendar::handleGetLimit(UCalendarDateFields field, ELimitType l
case UCAL_LIMIT_COUNT: //added to avoid warning
case UCAL_LIMIT_MAXIMUM:
return GregorianCalendar::handleGetLimit(UCAL_YEAR, UCAL_LIMIT_MAXIMUM) - kEraInfo[kCurrentEra].year;
default:
return 1; // Error condition, invalid limitType
}
}
default:

View file

@ -1574,12 +1574,10 @@ UBool RegexCompile::doParseActions(int32_t action)
// Have encountered the ']' that closes a set.
// Force the evaluation of any pending operations within this set,
// leave the completed set on the top of the set stack.
{
setEval(setEnd);
int32_t setOp = fSetOpStack.popi();
U_ASSERT(setOp==setStart);
U_ASSERT(fSetOpStack.peeki()==setStart);
fSetOpStack.popi();
break;
}
case doSetFinish:
{

View file

@ -149,7 +149,8 @@ getTimeZoneTranslationType(TimeZoneTranslationTypeIndex typeIdx) {
case ZSIDX_SHORT_DAYLIGHT:
type = DAYLIGHT_SHORT;
break;
default:
break;
}
return type;
}
@ -1097,6 +1098,8 @@ ZoneStringFormat::getString(const UnicodeString &tzid, TimeZoneTranslationTypeIn
zstrings->getString(typeIdx, result);
}
break;
default:
break;
}
}
}
@ -1122,6 +1125,8 @@ ZoneStringFormat::getString(const UnicodeString &tzid, TimeZoneTranslationTypeIn
mzstrings->getString(typeIdx, result);
}
break;
default:
break;
}
}
}

View file

@ -6,7 +6,7 @@
*
*******************************************************************************
*
* File wrtxml.c
* File wrtxml.cpp
*
* Modification History:
*