summaryrefslogtreecommitdiff
path: root/src/core/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/CMakeLists.txt')
-rw-r--r--src/core/CMakeLists.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt
index d0c405ec7..9760be4e4 100644
--- a/src/core/CMakeLists.txt
+++ b/src/core/CMakeLists.txt
@@ -623,6 +623,17 @@ if (MSVC)
623 # 'context' : truncation from 'type1' to 'type2' 623 # 'context' : truncation from 'type1' to 'type2'
624 /we4305 624 /we4305
625 ) 625 )
626else()
627 target_compile_options(core PRIVATE
628 -Werror=conversion
629 -Werror=ignored-qualifiers
630 -Werror=implicit-fallthrough
631 -Werror=reorder
632 -Werror=sign-compare
633 -Werror=unused-but-set-parameter
634 -Werror=unused-but-set-variable
635 -Werror=unused-variable
636 )
626endif() 637endif()
627 638
628create_target_directory_groups(core) 639create_target_directory_groups(core)