summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/CPMemory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/VideoCommon/CPMemory.cpp')
-rw-r--r--Source/Core/VideoCommon/CPMemory.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/CPMemory.cpp b/Source/Core/VideoCommon/CPMemory.cpp
index d2371834a3..3d72a6f70b 100644
--- a/Source/Core/VideoCommon/CPMemory.cpp
+++ b/Source/Core/VideoCommon/CPMemory.cpp
@@ -17,7 +17,14 @@ CPState g_preprocess_cp_state;
void CopyPreprocessCPStateFromMain()
{
+#ifdef __GNUC__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wclass-memaccess"
+#endif
std::memcpy(&g_preprocess_cp_state, &g_main_cp_state, sizeof(CPState));
+#ifdef __GNUC__
+#pragma GCC diagnostic pop
+#endif
}
std::pair<std::string, std::string> GetCPRegInfo(u8 cmd, u32 value)