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:
mwl4 2023-01-25 15:11:49 +01:00
parent 789f572332
commit 1439e93a69

View File

@ -166,7 +166,7 @@ private:
const bool m_active;
#ifdef TRACY_ON_DEMAND
uint64_t m_connectionId;
uint64_t m_connectionId = 0;
#endif
};