Merge pull request #317 from hulakdar/master

Fix MSVC warnings
This commit is contained in:
Bartosz Taudul 2022-01-26 21:46:25 +01:00 committed by GitHub
commit 701ecdebaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 1 deletions

View File

@ -340,7 +340,7 @@ CallstackSymbolData DecodeSymbolAddress( uint64_t ptr )
CallstackSymbolData DecodeCodeAddress( uint64_t ptr )
{
CallstackSymbolData sym;
CallstackSymbolData sym = {};
const auto proc = GetCurrentProcess();
bool done = false;

View File

@ -30,6 +30,11 @@ SOFTWARE.
#include "../common/TracyAlloc.hpp"
#if defined (_MSC_VER)
#pragma warning(push)
#pragma warning(disable:4324)
#endif
namespace tracy {
template <typename T> class SPSCQueue {
@ -134,3 +139,7 @@ private:
char padding_[kCacheLineSize - sizeof(writeIdxCache_)];
};
} // namespace rigtorp
#if defined (_MSC_VER)
#pragma warning(pop)
#endif