diff options
| author | Rodrigo Locatti <reinuseslisp@airmail.cc> | 2020-10-13 16:20:44 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-13 16:20:44 -0300 |
| commit | c5b3c8d06bcfa343b2cecbfc60b3530b306ebe88 (patch) | |
| tree | 9565ff464bbb9e5a0aa66e6e310098314e88d019 /src/core/CMakeLists.txt | |
| parent | d291fc1a517d0db07e4b32f5b4ad294c5e93e984 (diff) | |
| parent | 39c8d18feba8eafcd43fbb55e73ae150a1947aad (diff) | |
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) # 'context' : truncation from 'type1' to 'type2' /we4305 ) +else() + target_compile_options(core PRIVATE + -Werror=conversion + -Werror=ignored-qualifiers + -Werror=implicit-fallthrough + -Werror=reorder + -Werror=sign-compare + -Werror=unused-but-set-parameter + -Werror=unused-but-set-variable + -Werror=unused-variable + ) endif() create_target_directory_groups(core) |
