Skip to content

Commit 1c92170

Browse files
rikardfalkebornamai2012
authored andcommitted
ValueFlow: Remove unused argument (#2442)
1 parent 95696ea commit 1c92170

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/valueflow.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3768,7 +3768,7 @@ struct Lambda {
37683768
}
37693769
};
37703770

3771-
static bool isDecayedPointer(const Token *tok, const Settings *settings)
3771+
static bool isDecayedPointer(const Token *tok)
37723772
{
37733773
if (!tok)
37743774
return false;
@@ -3886,7 +3886,7 @@ static void valueFlowLifetime(TokenList *tokenlist, SymbolDatabase*, ErrorLogger
38863886
continue;
38873887
if (var->nameToken() == tok)
38883888
continue;
3889-
if (var->isArray() && !var->isStlType() && !var->isArgument() && isDecayedPointer(tok, settings)) {
3889+
if (var->isArray() && !var->isStlType() && !var->isArgument() && isDecayedPointer(tok)) {
38903890
errorPath.emplace_back(tok, "Array decayed to pointer here.");
38913891

38923892
ValueFlow::Value value;

0 commit comments

Comments
 (0)