diff options
author | Lioncash <mathew1800@gmail.com> | 2020-10-20 22:15:59 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2020-10-20 22:16:03 -0400 |
commit | e408bd3b7ce0f584475da88a770319bccca780b4 (patch) | |
tree | 2d74f06d232f51c0255d3a440b4b12ff3e0a71db /src | |
parent | 2e74b79e89fe1e6a21fe0d8650844e563b3c32f5 (diff) |
core: Fix clang build pt.2
Resolves the clang build issue in a more unintrusive way.
Diffstat (limited to 'src')
-rw-r--r-- | src/audio_core/CMakeLists.txt | 7 | ||||
-rw-r--r-- | src/core/CMakeLists.txt | 7 |
2 files changed, 10 insertions, 4 deletions
diff --git a/src/audio_core/CMakeLists.txt b/src/audio_core/CMakeLists.txt index 54940a034..68c67507b 100644 --- a/src/audio_core/CMakeLists.txt +++ b/src/audio_core/CMakeLists.txt @@ -51,9 +51,12 @@ if (NOT MSVC) -Werror=implicit-fallthrough -Werror=reorder -Werror=sign-compare - -Werror=unused-but-set-parameter - -Werror=unused-but-set-variable -Werror=unused-variable + + $<$<CXX_COMPILER_ID:GNU>:-Werror=unused-but-set-parameter> + $<$<CXX_COMPILER_ID:GNU>:-Werror=unused-but-set-variable> + + -Wno-sign-conversion ) endif() diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index b6dc25f6b..db1c9fdef 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -630,9 +630,12 @@ else() -Werror=implicit-fallthrough -Werror=reorder -Werror=sign-compare - -Werror=unused-but-set-parameter - -Werror=unused-but-set-variable -Werror=unused-variable + + $<$<CXX_COMPILER_ID:GNU>:-Werror=unused-but-set-parameter> + $<$<CXX_COMPILER_ID:GNU>:-Werror=unused-but-set-variable> + + -Wno-sign-conversion ) endif() |