From c9efc26578a42c9c5defe7d98d95dc28a2b58cc3 Mon Sep 17 00:00:00 2001 From: rikardfalkeborn Date: Tue, 26 Feb 2019 23:35:11 +0100 Subject: [PATCH] valueflow: Mark getLifetimeToken() static (#1703) Fixes a compiler warning about missing declaration. --- lib/valueflow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/valueflow.cpp b/lib/valueflow.cpp index aac84e519..33981a950 100644 --- a/lib/valueflow.cpp +++ b/lib/valueflow.cpp @@ -2662,7 +2662,7 @@ std::string lifetimeType(const Token *tok, const ValueFlow::Value *val) 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) return nullptr;