Fixed compiler warnings

This commit is contained in:
Daniel Marjamäki 2021-01-23 18:04:28 +01:00
parent 9d10f4f572
commit 772b44d11a
2 changed files with 1 additions and 10 deletions

View File

@ -751,7 +751,7 @@ static void followVariableExpressionError(const Token *tok1, const Token *tok2,
errors->push_back(item);
}
const Token* followReferences(const Token* tok, ErrorPath* errors, int depth = 20)
static const Token* followReferences(const Token* tok, ErrorPath* errors, int depth = 20)
{
if (!tok)
return nullptr;

View File

@ -2453,15 +2453,6 @@ static void valueFlowReverse(Token* tok,
}
}
static void valueFlowReverse(Token* tok,
const Token* const varToken,
const std::list<ValueFlow::Value>& values,
TokenList* tokenlist,
const Settings* settings)
{
valueFlowReverse(tok, nullptr, varToken, values, tokenlist, settings);
}
std::string lifetimeType(const Token *tok, const ValueFlow::Value *val)
{
std::string result;