diff options
| author | 2020-10-13 16:20:44 -0300 | |
|---|---|---|
| committer | 2020-10-13 16:20:44 -0300 | |
| commit | c5b3c8d06bcfa343b2cecbfc60b3530b306ebe88 (patch) | |
| tree | 9565ff464bbb9e5a0aa66e6e310098314e88d019 /src/core/CMakeLists.txt | |
| parent | Merge pull request #3929 from FearlessTobi/ticket-keys (diff) | |
| parent | core/CMakeLists: Make some warnings errors (diff) | |
| download | yuzu-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.txt | 11 |
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 | ) |
| 626 | else() | ||
| 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 | ) | ||
| 626 | endif() | 637 | endif() |
| 627 | 638 | ||
| 628 | create_target_directory_groups(core) | 639 | create_target_directory_groups(core) |