Skip to content
Permalink
Browse files

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.
  • Loading branch information...
orbea authored and arcum42 committed Sep 30, 2019
1 parent fd5d80b commit 1c668513445691c036fa3b75bea99ad64b8b5bf3
Showing with 9 additions and 4 deletions.
  1. +9 −4 plugins/GSdx_legacy/CMakeLists.txt
@@ -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)

0 comments on commit 1c66851

Please sign in to comment.
You can’t perform that action at this time.