Merge branch 'debug-warnings' of https://github.com/rgeissert/cppcheck into rgeissert-debug-warnings

This commit is contained in:
Daniel Marjamäki 2011-01-04 18:17:39 +01:00
commit 85897c3991
1 changed files with 1 additions and 1 deletions

View File

@ -2357,7 +2357,7 @@ void CheckMemoryLeakInFunction::checkScope(const Token *Tok1, const std::string
if (! noerr) if (! noerr)
{ {
std::ostringstream errmsg; std::ostringstream errmsg;
errmsg << "inconclusive leak: "; errmsg << "inconclusive leak of " << varname << ": ";
for (const Token *tok2 = tok; tok2; tok2 = tok2->next()) for (const Token *tok2 = tok; tok2; tok2 = tok2->next())
errmsg << " " << tok2->str(); errmsg << " " << tok2->str();
reportError(_tokenizer->tokens(), Severity::debug, "debug", errmsg.str()); reportError(_tokenizer->tokens(), Severity::debug, "debug", errmsg.str());