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.

This commit is contained in:
Shanoah Alkire 2018-10-13 13:56:38 -07:00
parent 802ae36a66
commit 149f30c7fa
3 changed files with 11 additions and 0 deletions

View File

@ -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
)

View File

@ -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)

View File

@ -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})