Browse Source

core: Add -fsized-dealloction as a Clang flag

Prevents a operator delete error when compiling with Clang 11.
nce_cpp
lat9nq 5 years ago
parent
commit
51b74a317b
  1. 2
      src/core/CMakeLists.txt

2
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-parameter>
$<$<CXX_COMPILER_ID:GNU>:-Werror=unused-but-set-variable> $<$<CXX_COMPILER_ID:GNU>:-Werror=unused-but-set-variable>
$<$<CXX_COMPILER_ID:Clang>:-fsized-deallocation>
-Wno-sign-conversion -Wno-sign-conversion
) )
endif() endif()

Loading…
Cancel
Save