Skip to content

Commit 772b44d

Browse files
committed
Fixed compiler warnings
1 parent 9d10f4f commit 772b44d

2 files changed

Lines changed: 1 addition & 10 deletions

File tree

lib/astutils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ static void followVariableExpressionError(const Token *tok1, const Token *tok2,
751751
errors->push_back(item);
752752
}
753753

754-
const Token* followReferences(const Token* tok, ErrorPath* errors, int depth = 20)
754+
static const Token* followReferences(const Token* tok, ErrorPath* errors, int depth = 20)
755755
{
756756
if (!tok)
757757
return nullptr;

lib/valueflow.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2453,15 +2453,6 @@ static void valueFlowReverse(Token* tok,
24532453
}
24542454
}
24552455

2456-
static void valueFlowReverse(Token* tok,
2457-
const Token* const varToken,
2458-
const std::list<ValueFlow::Value>& values,
2459-
TokenList* tokenlist,
2460-
const Settings* settings)
2461-
{
2462-
valueFlowReverse(tok, nullptr, varToken, values, tokenlist, settings);
2463-
}
2464-
24652456
std::string lifetimeType(const Token *tok, const ValueFlow::Value *val)
24662457
{
24672458
std::string result;

0 commit comments

Comments
 (0)