Fixed two other compilation errors on GCC.

This commit is contained in:
PKEuS 2012-09-02 16:42:38 +02:00
parent 8a474add19
commit 794a491515
1 changed files with 2 additions and 2 deletions

View File

@ -705,12 +705,12 @@ void CheckOther::checkRedundantAssignment()
for (std::map<unsigned int, const Token*>::iterator i = varAssignments.begin(); i != varAssignments.end(); ++i) {
const Variable* var = symbolDatabase->getVariableFromVarId(i->first);
if (!var || (!var->isLocal() && !var->isArgument()))
i = varAssignments.erase(i);
varAssignments.erase(i++);
}
for (std::map<unsigned int, const Token*>::iterator i = memAssignments.begin(); i != memAssignments.end(); ++i) {
const Variable* var = symbolDatabase->getVariableFromVarId(i->first);
if (!var || (!var->isLocal() && !var->isArgument()))
i = memAssignments.erase(i);
memAssignments.erase(i++);
}
} else {
varAssignments.clear();