mirror of https://github.com/PCSX2/pcsx2.git
gsdx_legacy: Silence very verbose clang warnings. (#3126)
[107/641] Building CXX object plugins/GSdx_legacy/CMakeFiles/GSdx-legacy-1.0.0.dir/stdafx.cpp.o warning: unknown warning option '-Wno-class-memaccess'; did you mean '-Wno-class-varargs'? [-Wunknown-warning-option] warning: unknown warning option '-Wno-packed-not-aligned'; did you mean '-Wno-over-aligned'? [-Wunknown-warning-option] 2 warnings generated.
This commit is contained in:
parent
fd5d80b53f
commit
1c66851344
|
@ -15,12 +15,17 @@ 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
|
||||
)
|
||||
|
||||
# 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.
|
||||
if(GCC_VERSION VERSION_EQUAL "8.0" OR GCC_VERSION VERSION_GREATER "8.0")
|
||||
set(CommonFlags ${CommonFlags}
|
||||
-Wno-packed-not-aligned
|
||||
-Wno-class-memaccess
|
||||
)
|
||||
endif()
|
||||
|
||||
set(GSdxFinalFlags ${CommonFlags})
|
||||
|
||||
if(XDG_STD)
|
||||
|
|
Loading…
Reference in New Issue