diff options
author | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2021-02-09 21:27:12 -0500 |
---|---|---|
committer | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2021-02-09 21:27:12 -0500 |
commit | 68f718943e9cb87465869f9421e38515034bede0 (patch) | |
tree | f954165f25d12130f1194b9aa52594e2cf40d70b | |
parent | 70db238f80c523ac3f807de18e822698cc39a135 (diff) |
core: Add -fsized-dealloction as a Clang flag
Prevents a operator delete error when compiling with Clang 11.
-rw-r--r-- | src/core/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 386d7bddf..987076956 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -653,6 +653,8 @@ else() $<$<CXX_COMPILER_ID:GNU>:-Werror=unused-but-set-parameter> $<$<CXX_COMPILER_ID:GNU>:-Werror=unused-but-set-variable> + $<$<CXX_COMPILER_ID:Clang>:-fsized-deallocation> + -Wno-sign-conversion ) endif() |