Fix Cppcheck warning about unused variable

This commit is contained in:
Daniel Marjamäki 2015-07-29 20:26:00 +02:00
parent 6790d91fbb
commit 594d30f7ae
1 changed files with 0 additions and 1 deletions

View File

@ -1834,7 +1834,6 @@ void CheckOther::zerodivcondError(const Token *tokcond, const Token *tokdiv, boo
callstack.push_back(tokcond);
callstack.push_back(tokdiv);
}
const std::string condition(tokcond ? tokcond->expressionString() : "");
const std::string linenr(MathLib::toString(tokdiv ? tokdiv->linenr() : 0));
reportError(callstack, Severity::warning, "zerodivcond", ValueFlow::eitherTheConditionIsRedundant(tokcond) + " or there is division by zero at line " + linenr + ".", 0U, inconclusive);
}