summaryrefslogtreecommitdiff
path: root/src/common/bounded_threadsafe_queue.h
diff options
context:
space:
mode:
authorGravatar Morph2022-10-21 02:34:07 -0400
committerGravatar Morph2022-10-22 15:02:04 -0400
commit3822e313232039af810b588646b724e19bc29bfc (patch)
treea231f473366f43c5cef8a540a090d83132fdb7b3 /src/common/bounded_threadsafe_queue.h
parentCMakeLists: Remove redundant warnings (diff)
downloadyuzu-3822e313232039af810b588646b724e19bc29bfc.tar.gz
yuzu-3822e313232039af810b588646b724e19bc29bfc.tar.xz
yuzu-3822e313232039af810b588646b724e19bc29bfc.zip
CMakeLists: Disable C4100 and C4324
Disabling C4100 is similar to -Wno-unused-parameter
Diffstat (limited to '')
-rw-r--r--src/common/bounded_threadsafe_queue.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/common/bounded_threadsafe_queue.h b/src/common/bounded_threadsafe_queue.h
index 7e465549b..21217801e 100644
--- a/src/common/bounded_threadsafe_queue.h
+++ b/src/common/bounded_threadsafe_queue.h
@@ -21,11 +21,6 @@ constexpr size_t hardware_interference_size = std::hardware_destructive_interfer
21constexpr size_t hardware_interference_size = 64; 21constexpr size_t hardware_interference_size = 64;
22#endif 22#endif
23 23
24#ifdef _MSC_VER
25#pragma warning(push)
26#pragma warning(disable : 4324)
27#endif
28
29template <typename T, size_t capacity = 0x400> 24template <typename T, size_t capacity = 0x400>
30class MPSCQueue { 25class MPSCQueue {
31public: 26public:
@@ -160,8 +155,4 @@ private:
160 static_assert(std::is_nothrow_destructible_v<T>, "T must be nothrow destructible"); 155 static_assert(std::is_nothrow_destructible_v<T>, "T must be nothrow destructible");
161}; 156};
162 157
163#ifdef _MSC_VER
164#pragma warning(pop)
165#endif
166
167} // namespace Common 158} // namespace Common