ICU-13346 avoid unused-variable compiler warning

X-SVN-Rev: 40374
This commit is contained in:
Markus Scherer 2017-09-07 19:50:40 +00:00
parent 4e75a6ece0
commit ef72d0734e

View File

@ -662,7 +662,8 @@ int32_t Edits::Iterator::findIndex(int32_t i, UBool findSource, UErrorCode &erro
// Search backwards.
for (;;) {
UBool hasPrevious = previous(errorCode);
U_ASSERT(hasPrevious); // because i>=0 and the first span starts there
U_ASSERT(hasPrevious); // because i>=0 and the first span starts at 0
(void)hasPrevious; // avoid unused-variable warning
spanStart = findSource ? srcIndex : destIndex;
if (i >= spanStart) {
// The index is in the current span.