mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 14:44:34 +00:00
Fix compilation on linux: always initialize ScopedZone::m_connectionId to 0.
gcc error: public/tracy/../client/TracyScoped.hpp:102:9: error: ‘___tracy_scoped_zone.tracy::ScopedZone::m_connectionId’ may be used uninitialized in this function [-Werror=maybe-uninitialized] if( GetProfiler().ConnectionId() != m_connectionId ) return; ^~
This commit is contained in:
parent
789f572332
commit
1439e93a69
@ -166,7 +166,7 @@ private:
|
||||
const bool m_active;
|
||||
|
||||
#ifdef TRACY_ON_DEMAND
|
||||
uint64_t m_connectionId;
|
||||
uint64_t m_connectionId = 0;
|
||||
#endif
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user