summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-10-21 04:15:59 +0200
committerLioncash <mathew1800@gmail.com>2020-10-21 04:16:03 +0200
commite408bd3b7ce0f584475da88a770319bccca780b4 (patch)
tree2d74f06d232f51c0255d3a440b4b12ff3e0a71db
parentMerge pull request #4814 from yuzu-emu/revert-4796-clang (diff)
downloadyuzu-e408bd3b7ce0f584475da88a770319bccca780b4.tar
yuzu-e408bd3b7ce0f584475da88a770319bccca780b4.tar.gz
yuzu-e408bd3b7ce0f584475da88a770319bccca780b4.tar.bz2
yuzu-e408bd3b7ce0f584475da88a770319bccca780b4.tar.lz
yuzu-e408bd3b7ce0f584475da88a770319bccca780b4.tar.xz
yuzu-e408bd3b7ce0f584475da88a770319bccca780b4.tar.zst
yuzu-e408bd3b7ce0f584475da88a770319bccca780b4.zip
-rw-r--r--src/audio_core/CMakeLists.txt7
-rw-r--r--src/core/CMakeLists.txt7
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()