diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-01-15 05:35:33 -0300 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-01-15 16:31:19 -0300 |
commit | 5f517e3e1698cac0408eb6ad66c826e4aa8a7b25 (patch) | |
tree | 560d3b5f1df9f07f1222a983af84b14d18cbc07f | |
parent | f8650a9580cf61cf97011511d8a1fd53346ac99c (diff) |
core/cmake: Enforce Wclass-memaccess
Treat -Wclass-memaccess as an error.
-rw-r--r-- | src/core/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 99310dc503..2f6b227473 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -645,6 +645,7 @@ else() -Werror=implicit-fallthrough -Werror=sign-compare + $<$<CXX_COMPILER_ID:GNU>:-Werror=class-memaccess> $<$<CXX_COMPILER_ID:GNU>:-Werror=unused-but-set-parameter> $<$<CXX_COMPILER_ID:GNU>:-Werror=unused-but-set-variable> |