From 34b512d04ba5cb0f6235a529f954eb0f7ce9db27 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 7 Apr 2020 21:39:45 +0200 Subject: [PATCH] Don't declare unused variables on cygwin. --- client/TracyCallstack.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/TracyCallstack.cpp b/client/TracyCallstack.cpp index 62a53b8b..241cefbb 100644 --- a/client/TracyCallstack.cpp +++ b/client/TracyCallstack.cpp @@ -75,6 +75,7 @@ BOOL IMAGEAPI SymGetLineFromInlineContext(HANDLE hProcess, DWORD64 qwAddr, ULONG }; #endif +#ifndef __CYGWIN__ struct ModuleCache { uint64_t start; @@ -83,6 +84,7 @@ struct ModuleCache }; static FastVector* s_modCache; +#endif void InitCallstack() { @@ -91,11 +93,11 @@ void InitCallstack() SymInitialize( GetCurrentProcess(), nullptr, true ); SymSetOptions( SYMOPT_LOAD_LINES ); +#ifndef __CYGWIN__ HMODULE mod[1024]; DWORD needed; HANDLE proc = GetCurrentProcess(); -#ifndef __CYGWIN__ s_modCache = (FastVector*)tracy_malloc( sizeof( FastVector ) ); new(s_modCache) FastVector( 512 );