mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 23:10:40 +00:00
ICU-20159 Fixing more GCC warnings.
This commit is contained in:
parent
bdad79b622
commit
7d30fc9b46
3 changed files with 2 additions and 6 deletions
|
@ -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)..
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue