From 149f30c7fafba64b46cc2e3f56292c1a5a019de4 Mon Sep 17 00:00:00 2001 From: Shanoah Alkire Date: Sat, 13 Oct 2018 13:56:38 -0700 Subject: [PATCH] Removing some warnings from GSdx and pcsx2 because gcc 8 spams them mercilessly. They should probably be fixed properly, but in the meantime, this'll prevent them from masking other compiler warnings. --- pcsx2/CMakeLists.txt | 3 +++ plugins/GSdx/CMakeLists.txt | 4 ++++ plugins/GSdx_legacy/CMakeLists.txt | 4 ++++ 3 files changed, 11 insertions(+) diff --git a/pcsx2/CMakeLists.txt b/pcsx2/CMakeLists.txt index 5f0b3359ae..68249e5010 100644 --- a/pcsx2/CMakeLists.txt +++ b/pcsx2/CMakeLists.txt @@ -18,6 +18,9 @@ set(CommonFlags -Wstrict-aliasing # Allow to track strict aliasing issue. -Wno-char-subscripts # only impact svu which is deprecated -Wno-missing-braces + # Largely turning off because LegacyPluginAPI_Common in Plugins.h spams really badly in gcc 8 due to the memzero initialization. + # Should probably be fixed properly, but for now this should work. + -Wno-class-memaccess #-Wno-ignored-attributes # don't remember why I put here but it is pure C option, therefore it complains for nothings on cpp files -DWX_PRECOMP ) diff --git a/plugins/GSdx/CMakeLists.txt b/plugins/GSdx/CMakeLists.txt index 86b556f882..4270e568fa 100644 --- a/plugins/GSdx/CMakeLists.txt +++ b/plugins/GSdx/CMakeLists.txt @@ -14,6 +14,10 @@ set(CommonFlags -Wno-unknown-pragmas -Wno-parentheses -Wunused-variable # __dummy variable need to be investigated + # The next two need to be looked at, but spam really badly in gcc 8. + # Largely class alignment in GSDevice.h and memcpy in GSVector*.h. + -Wno-class-memaccess + -Wno-packed-not-aligned ) if(USE_ICC) diff --git a/plugins/GSdx_legacy/CMakeLists.txt b/plugins/GSdx_legacy/CMakeLists.txt index 5d2ffe425e..ad7ebda9a3 100644 --- a/plugins/GSdx_legacy/CMakeLists.txt +++ b/plugins/GSdx_legacy/CMakeLists.txt @@ -15,6 +15,10 @@ set(CommonFlags -Wno-unknown-pragmas -Wno-parentheses -Wunused-variable # __dummy variable need to be investigated + # The next two need to be looked at, but spam really badly in gcc 8. + # Largely class alignment in GSDevice.h and memcpy in GSVector*.h. + -Wno-class-memaccess + -Wno-packed-not-aligned ) set(GSdxFinalFlags ${CommonFlags})