From: Markus Scherer Date: Thu, 7 Sep 2017 19:50:40 +0000 (+0000) Subject: ICU-13346 avoid unused-variable compiler warning X-Git-Tag: release-60-rc~162 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ef72d0734ee1d428053cad55832907f43a506bf9;p=icu ICU-13346 avoid unused-variable compiler warning X-SVN-Rev: 40374 --- diff --git a/icu4c/source/common/edits.cpp b/icu4c/source/common/edits.cpp index 09658958351..c94fa57b4b5 100644 --- a/icu4c/source/common/edits.cpp +++ b/icu4c/source/common/edits.cpp @@ -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.