summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Morph2022-10-21 02:34:07 -0400
committerGravatar Morph2022-10-22 15:02:04 -0400
commit347432524c179af443ef0f377abb0e44a84ec1e7 (patch)
treedb05f030efbe0243320d73437b27e1ba0daeb90e /src
parentCMakeLists: Enforce C5233 on MSVC (diff)
downloadyuzu-347432524c179af443ef0f377abb0e44a84ec1e7.tar.gz
yuzu-347432524c179af443ef0f377abb0e44a84ec1e7.tar.xz
yuzu-347432524c179af443ef0f377abb0e44a84ec1e7.zip
ipc_helpers: Ignore GCC compiler warnings only on GCC
Clang and ICC for whatever reason also defines __GNUC__. Exclude them from this check.
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/ipc_helpers.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/ipc_helpers.h b/src/core/hle/ipc_helpers.h
index aa27be767..18fde8bd6 100644
--- a/src/core/hle/ipc_helpers.h
+++ b/src/core/hle/ipc_helpers.h
@@ -406,7 +406,7 @@ inline s32 RequestParser::Pop() {
406} 406}
407 407
408// Ignore the -Wclass-memaccess warning on memcpy for non-trivially default constructible objects. 408// Ignore the -Wclass-memaccess warning on memcpy for non-trivially default constructible objects.
409#if defined(__GNUC__) 409#if defined(__GNUC__) && !defined(__clang__) && !defined(__INTEL_COMPILER)
410#pragma GCC diagnostic push 410#pragma GCC diagnostic push
411#pragma GCC diagnostic ignored "-Wclass-memaccess" 411#pragma GCC diagnostic ignored "-Wclass-memaccess"
412#endif 412#endif
@@ -417,7 +417,7 @@ void RequestParser::PopRaw(T& value) {
417 std::memcpy(&value, cmdbuf + index, sizeof(T)); 417 std::memcpy(&value, cmdbuf + index, sizeof(T));
418 index += (sizeof(T) + 3) / 4; // round up to word length 418 index += (sizeof(T) + 3) / 4; // round up to word length
419} 419}
420#if defined(__GNUC__) 420#if defined(__GNUC__) && !defined(__clang__) && !defined(__INTEL_COMPILER)
421#pragma GCC diagnostic pop 421#pragma GCC diagnostic pop
422#endif 422#endif
423 423