From 9fda60820a48c98e5cf44a47573dbe14b0b63751 Mon Sep 17 00:00:00 2001 From: hulakdar Date: Wed, 26 Jan 2022 21:08:17 +0200 Subject: [PATCH] Silence padding warnings, as this is intended behaviour --- client/tracy_SPSCQueue.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/client/tracy_SPSCQueue.h b/client/tracy_SPSCQueue.h index 9fe305f1..556c9b84 100644 --- a/client/tracy_SPSCQueue.h +++ b/client/tracy_SPSCQueue.h @@ -30,6 +30,11 @@ SOFTWARE. #include "../common/TracyAlloc.hpp" +#if defined (_MSC_VER) +#pragma warning(push) +#pragma warning(disable:4324) +#endif + namespace tracy { template class SPSCQueue { @@ -134,3 +139,7 @@ private: char padding_[kCacheLineSize - sizeof(writeIdxCache_)]; }; } // namespace rigtorp + +#if defined (_MSC_VER) +#pragma warning(pop) +#endif