ICU-3222 compiler warning fix

X-SVN-Rev: 14312
This commit is contained in:
Andy Heninger 2004-01-13 19:54:06 +00:00
parent 52237d9d62
commit a934d2c674

View File

@ -1161,7 +1161,11 @@ int32_t RuleBasedBreakIterator::getRuleStatus() const {
int32_t pa = current();
nonConstThis->previous();
int32_t pb = nonConstThis->next();
U_ASSERT(pa == pb);
if (pa != pb) {
// note: the if (pa != pb) test is here only to eliminate warnings for
// unused local variables on gcc. Logically, it isn't needed.
U_ASSERT(pa == pb);
}
}
}
return nonConstThis->fLastBreakTag;