ICU-20159 Fixing more GCC warnings.

This commit is contained in:
Shane F. Carr 2019-02-20 20:40:30 -06:00 committed by Shane F. Carr
parent bdad79b622
commit 7d30fc9b46
3 changed files with 2 additions and 6 deletions

View file

@ -545,7 +545,7 @@ static int32_t getRunFromLogicalIndex(UBiDi *pBiDi, int32_t logicalIndex) {
* negative number of BiDi control characters within this run.
*/
U_CFUNC UBool
ubidi_getRuns(UBiDi *pBiDi, UErrorCode *pErrorCode) {
ubidi_getRuns(UBiDi *pBiDi, UErrorCode*) {
/*
* This method returns immediately if the runs are already set. This
* includes the case of length==0 (handled in setPara)..

View file

@ -99,7 +99,7 @@ void WholeStringBreakIterator::setText(UText *text, UErrorCode &errorCode) {
}
}
}
void WholeStringBreakIterator::adoptText(CharacterIterator* it) {
void WholeStringBreakIterator::adoptText(CharacterIterator*) {
UPRV_UNREACHABLE; // should not be called
}

View file

@ -47,7 +47,6 @@
U_NAMESPACE_BEGIN
static constexpr int32_t MEAS_UNIT_COUNT = 146; // see assertion in MeasureFormatCacheData constructor
static constexpr int32_t WIDTH_INDEX_COUNT = UMEASFMT_WIDTH_NARROW + 1;
UOBJECT_DEFINE_RTTI_IMPLEMENTATION(MeasureFormat)
@ -160,9 +159,6 @@ private:
MeasureFormatCacheData::MeasureFormatCacheData()
: integerFormat(nullptr), numericDateFormatters(nullptr) {
// Please update MEAS_UNIT_COUNT if it gets out of sync with the true count!
U_ASSERT(MEAS_UNIT_COUNT == MeasureUnit::getIndexCount());
for (int32_t i = 0; i < WIDTH_INDEX_COUNT; ++i) {
widthFallback[i] = UMEASFMT_WIDTH_COUNT;
}