valueflow: Mark getLifetimeToken() static (#1703)
Fixes a compiler warning about missing declaration.
This commit is contained in:
parent
c44e2ed378
commit
c9efc26578
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue