From 7cf36084931a6fa4ebbc15bc659f69f7c13c92fc Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 5 Oct 2019 02:11:45 +0200 Subject: [PATCH] Avoid unused variables. --- client/TracyProfiler.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/TracyProfiler.hpp b/client/TracyProfiler.hpp index 6f6d9a5d..e51f37c9 100644 --- a/client/TracyProfiler.hpp +++ b/client/TracyProfiler.hpp @@ -360,8 +360,8 @@ public: static tracy_force_inline void MemAllocCallstack( const void* ptr, size_t size, int depth ) { - auto& profiler = GetProfiler(); #ifdef TRACY_HAS_CALLSTACK + auto& profiler = GetProfiler(); # ifdef TRACY_ON_DEMAND if( !profiler.IsConnected() ) return; # endif @@ -381,8 +381,8 @@ public: static tracy_force_inline void MemFreeCallstack( const void* ptr, int depth ) { - auto& profiler = GetProfiler(); #ifdef TRACY_HAS_CALLSTACK + auto& profiler = GetProfiler(); # ifdef TRACY_ON_DEMAND if( !profiler.IsConnected() ) return; # endif