Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

core: Add -fsized-dealloction as a Clang flag

lat9nq51b74a317bf0
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt
index 386d7bddf4..9870769562 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()