MSBuild: Silence MSVC warning C4324

This commit is contained in:
Stenzek
2024-07-06 19:45:08 +10:00
parent eba0794b4f
commit 9a70003b70
4 changed files with 1 additions and 18 deletions

View File

@@ -12,11 +12,6 @@
#include <string>
#include <vector>
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable : 4324) // warning C4324: structure was padded due to alignment specifier
#endif
class Error;
class SettingsInterface;
@@ -380,6 +375,3 @@ void AudioStream::SampleReaderImpl(SampleType* dest, const SampleType* src, u32
}
}
#ifdef _MSC_VER
#pragma warning(pop)
#endif

View File

@@ -19,7 +19,6 @@
// clang-format off
#ifdef _MSC_VER
#pragma warning(disable : 4611) // warning C4611: interaction between '_setjmp' and C++ object destruction is non-portable
#pragma warning(disable : 4324) // warning C4324: '`anonymous-namespace'::JPEGErrorHandler': structure was padded due to alignment specifier
#endif
// clang-format on