From 594d30f7ae32f36316da9861fd8f9c28c4393aea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Wed, 29 Jul 2015 20:26:00 +0200 Subject: [PATCH] Fix Cppcheck warning about unused variable --- lib/checkother.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/checkother.cpp b/lib/checkother.cpp index d10541c38..c907e9cb0 100644 --- a/lib/checkother.cpp +++ b/lib/checkother.cpp @@ -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); }