VERY experimental Nintendo Switch 2 emulator
C++
ipc_helpers: Ignore GCC compiler warnings only on GCC
Morph5c4c90385f2c
diff --git a/src/core/hle/ipc_helpers.h b/src/core/hle/ipc_helpers.hindex aa27be7678..18fde8bd6d 100644--- a/src/core/hle/ipc_helpers.h+++ b/src/core/hle/ipc_helpers.h@@ -406,7 +406,7 @@ inline s32 RequestParser::Pop() {}// Ignore the -Wclass-memaccess warning on memcpy for non-trivially default constructible objects.-#if defined(__GNUC__)+#if defined(__GNUC__) && !defined(__clang__) && !defined(__INTEL_COMPILER)#pragma GCC diagnostic push#pragma GCC diagnostic ignored "-Wclass-memaccess"#endif@@ -417,7 +417,7 @@ void RequestParser::PopRaw(T& value) {std::memcpy(&value, cmdbuf + index, sizeof(T));index += (sizeof(T) + 3) / 4; // round up to word length}-#if defined(__GNUC__)+#if defined(__GNUC__) && !defined(__clang__) && !defined(__INTEL_COMPILER)#pragma GCC diagnostic pop#endif