ICU-2699 Eliminate two compiler warnings in regexcmp.cpp

X-SVN-Rev: 12499
This commit is contained in:
Andy Heninger 2003-06-12 21:17:59 +00:00
parent 3563805788
commit 64d4ee8a6f

View file

@ -1682,7 +1682,6 @@ int32_t RegexCompile::blockTopLoc(UBool reserveLoc) {
theLoc = fRXPat->fCompiledPat->size()-1;
if (reserveLoc) {
int32_t opAtTheLoc = fRXPat->fCompiledPat->elementAti(theLoc);
int32_t prevType = URX_TYPE(opAtTheLoc);
int32_t nop = URX_BUILD(URX_NOP, 0);
fRXPat->fCompiledPat->insertElementAt(nop, theLoc, *fStatus);
}
@ -3147,7 +3146,7 @@ void RegexCompile::stripNOPs() {
void RegexCompile::OptDotStar() {
// Scan backwards in the pattern, looking for a JMP_SAV near the end.
int32_t jmpLoc;
int32_t op;
int32_t op = 0;
int32_t opType;
for (jmpLoc=fRXPat->fCompiledPat->size(); jmpLoc--;) {
U_ASSERT(jmpLoc>0);