From 2dcfe5fce09f8b57377e0faee61e14d86ad529db Mon Sep 17 00:00:00 2001 From: Till Rathmann Date: Tue, 31 Jul 2018 13:03:09 +0200 Subject: [PATCH] Made s_threadNameDataInstance and s_profilerInstance static. --- client/TracyProfiler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index 38ecb42f..33e9c41a 100644 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -176,7 +176,7 @@ VkCtxWrapper init_order(104) s_vkCtx { nullptr }; #ifdef TRACY_COLLECT_THREAD_NAMES struct ThreadNameData; -std::atomic init_order(104) s_threadNameDataInstance( nullptr ); +static std::atomic init_order(104) s_threadNameDataInstance( nullptr ); std::atomic& s_threadNameData = s_threadNameDataInstance; #endif @@ -184,7 +184,7 @@ std::atomic& s_threadNameData = s_threadNameDataInstance; thread_local LuaZoneState init_order(104) s_luaZoneState { 0, false }; #endif -Profiler init_order(105) s_profilerInstance; +static Profiler init_order(105) s_profilerInstance; Profiler& s_profiler = s_profilerInstance; #ifdef _MSC_VER