summaryrefslogtreecommitdiff
path: root/src/core/CMakeLists.txt
diff options
context:
space:
mode:
authorGravatar Rodrigo Locatti2020-10-13 16:20:44 -0300
committerGravatar GitHub2020-10-13 16:20:44 -0300
commitc5b3c8d06bcfa343b2cecbfc60b3530b306ebe88 (patch)
tree9565ff464bbb9e5a0aa66e6e310098314e88d019 /src/core/CMakeLists.txt
parentMerge pull request #3929 from FearlessTobi/ticket-keys (diff)
parentcore/CMakeLists: Make some warnings errors (diff)
downloadyuzu-c5b3c8d06bcfa343b2cecbfc60b3530b306ebe88.tar.gz
yuzu-c5b3c8d06bcfa343b2cecbfc60b3530b306ebe88.tar.xz
yuzu-c5b3c8d06bcfa343b2cecbfc60b3530b306ebe88.zip
Merge pull request #4786 from lioncash/flags
core/CMakeLists: Make some warnings errors
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)