summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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)
51 -Werror=implicit-fallthrough 51 -Werror=implicit-fallthrough
52 -Werror=reorder 52 -Werror=reorder
53 -Werror=sign-compare 53 -Werror=sign-compare
54 -Werror=unused-but-set-parameter
55 -Werror=unused-but-set-variable
56 -Werror=unused-variable 54 -Werror=unused-variable
55
56 $<$<CXX_COMPILER_ID:GNU>:-Werror=unused-but-set-parameter>
57 $<$<CXX_COMPILER_ID:GNU>:-Werror=unused-but-set-variable>
58
59 -Wno-sign-conversion
57 ) 60 )
58endif() 61endif()
59 62
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()
630 -Werror=implicit-fallthrough 630 -Werror=implicit-fallthrough
631 -Werror=reorder 631 -Werror=reorder
632 -Werror=sign-compare 632 -Werror=sign-compare
633 -Werror=unused-but-set-parameter
634 -Werror=unused-but-set-variable
635 -Werror=unused-variable 633 -Werror=unused-variable
634
635 $<$<CXX_COMPILER_ID:GNU>:-Werror=unused-but-set-parameter>
636 $<$<CXX_COMPILER_ID:GNU>:-Werror=unused-but-set-variable>
637
638 -Wno-sign-conversion
636 ) 639 )
637endif() 640endif()
638 641