valueflow: Mark getLifetimeToken() static (#1703)

Fixes a compiler warning about missing declaration.
This commit is contained in:
rikardfalkeborn 2019-02-26 23:35:11 +01:00 committed by amai2012
parent c44e2ed378
commit c9efc26578
1 changed files with 1 additions and 1 deletions

View File

@ -2662,7 +2662,7 @@ std::string lifetimeType(const Token *tok, const ValueFlow::Value *val)
return result; return result;
} }
const Token *getLifetimeToken(const Token *tok, ValueFlow::Value::ErrorPath &errorPath, int depth = 20) static const Token *getLifetimeToken(const Token *tok, ValueFlow::Value::ErrorPath &errorPath, int depth = 20)
{ {
if (!tok) if (!tok)
return nullptr; return nullptr;