mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Don't declare unused variables on cygwin.
This commit is contained in:
parent
8d9a611874
commit
34b512d04b
@ -75,6 +75,7 @@ BOOL IMAGEAPI SymGetLineFromInlineContext(HANDLE hProcess, DWORD64 qwAddr, ULONG
|
|||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef __CYGWIN__
|
||||||
struct ModuleCache
|
struct ModuleCache
|
||||||
{
|
{
|
||||||
uint64_t start;
|
uint64_t start;
|
||||||
@ -83,6 +84,7 @@ struct ModuleCache
|
|||||||
};
|
};
|
||||||
|
|
||||||
static FastVector<ModuleCache>* s_modCache;
|
static FastVector<ModuleCache>* s_modCache;
|
||||||
|
#endif
|
||||||
|
|
||||||
void InitCallstack()
|
void InitCallstack()
|
||||||
{
|
{
|
||||||
@ -91,11 +93,11 @@ void InitCallstack()
|
|||||||
SymInitialize( GetCurrentProcess(), nullptr, true );
|
SymInitialize( GetCurrentProcess(), nullptr, true );
|
||||||
SymSetOptions( SYMOPT_LOAD_LINES );
|
SymSetOptions( SYMOPT_LOAD_LINES );
|
||||||
|
|
||||||
|
#ifndef __CYGWIN__
|
||||||
HMODULE mod[1024];
|
HMODULE mod[1024];
|
||||||
DWORD needed;
|
DWORD needed;
|
||||||
HANDLE proc = GetCurrentProcess();
|
HANDLE proc = GetCurrentProcess();
|
||||||
|
|
||||||
#ifndef __CYGWIN__
|
|
||||||
s_modCache = (FastVector<ModuleCache>*)tracy_malloc( sizeof( FastVector<ModuleCache> ) );
|
s_modCache = (FastVector<ModuleCache>*)tracy_malloc( sizeof( FastVector<ModuleCache> ) );
|
||||||
new(s_modCache) FastVector<ModuleCache>( 512 );
|
new(s_modCache) FastVector<ModuleCache>( 512 );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user