ValueFlow: Remove unused argument (#2442)

This commit is contained in:
Rikard Falkeborn 2019-12-10 17:48:27 +01:00 committed by amai2012
parent 95696ead23
commit 1c92170179
1 changed files with 2 additions and 2 deletions

View File

@ -3768,7 +3768,7 @@ struct Lambda {
}
};
static bool isDecayedPointer(const Token *tok, const Settings *settings)
static bool isDecayedPointer(const Token *tok)
{
if (!tok)
return false;
@ -3886,7 +3886,7 @@ static void valueFlowLifetime(TokenList *tokenlist, SymbolDatabase*, ErrorLogger
continue;
if (var->nameToken() == tok)
continue;
if (var->isArray() && !var->isStlType() && !var->isArgument() && isDecayedPointer(tok, settings)) {
if (var->isArray() && !var->isStlType() && !var->isArgument() && isDecayedPointer(tok)) {
errorPath.emplace_back(tok, "Array decayed to pointer here.");
ValueFlow::Value value;