Remove inline suppression. The Cppcheck warning was a true positive.

This commit is contained in:
Daniel Marjamäki 2019-01-13 08:42:48 +01:00
parent d50c3de740
commit 43035ff186
1 changed files with 1 additions and 2 deletions

View File

@ -2413,10 +2413,9 @@ void CheckClass::pureVirtualFunctionCallInConstructorError(
for (const Token *tok : tokStack)
errorPath.emplace_back(tok, "Calling " + tok->str());
if (!errorPath.empty())
// cppcheck-suppress unreadVariable // FP
errorPath.back().second = purefuncname + " is a pure virtual method without body";
reportError(tokStack, Severity::warning, "pureVirtualCall",
reportError(errorPath, Severity::warning, "pureVirtualCall",
"$symbol:" + purefuncname +"\n"
"Call of pure virtual function '$symbol' in " + scopeFunctionTypeName + ".\n"
"Call of pure virtual function '$symbol' in " + scopeFunctionTypeName + ". The call will fail during runtime.", CWE(0U), false);