From e408bd3b7ce0f584475da88a770319bccca780b4 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 20 Oct 2020 22:15:59 -0400 Subject: [PATCH] core: Fix clang build pt.2 Resolves the clang build issue in a more unintrusive way. --- src/audio_core/CMakeLists.txt | 7 +++++-- 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 + + $<$:-Werror=unused-but-set-parameter> + $<$:-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 + + $<$:-Werror=unused-but-set-parameter> + $<$:-Werror=unused-but-set-variable> + + -Wno-sign-conversion ) endif()