From 30fc2f02ab473806ec38a61f83c7e3a4cb83e276 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 20 Oct 2019 19:42:29 +0200 Subject: [PATCH] Omit calculation of on-stack variable address. --- client/TracyProfiler.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/TracyProfiler.hpp b/client/TracyProfiler.hpp index e51f37c9..83228637 100644 --- a/client/TracyProfiler.hpp +++ b/client/TracyProfiler.hpp @@ -109,7 +109,7 @@ public: return std::chrono::duration_cast( std::chrono::high_resolution_clock::now().time_since_epoch() ).count(); # endif # elif defined _WIN32 || defined __CYGWIN__ - unsigned int dontcare; + static unsigned int dontcare; const auto t = int64_t( __rdtscp( &dontcare ) ); return t; # elif defined __i386 || defined _M_IX86 || defined __x86_64__ || defined _M_X64