From b4f015f501870a136bdf89c24402c54d126a3c57 Mon Sep 17 00:00:00 2001 From: hashlag Date: Thu, 5 Feb 2026 16:16:38 +0300 Subject: [PATCH] Compile tests with -Wunused -Werror=unused. Promotes cleaner and less error-prone code. --- ChaosTests/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ChaosTests/CMakeLists.txt b/ChaosTests/CMakeLists.txt index f5166ea..b2564b6 100644 --- a/ChaosTests/CMakeLists.txt +++ b/ChaosTests/CMakeLists.txt @@ -26,6 +26,8 @@ target_include_directories(ChaosTests PRIVATE $ ) +target_compile_options(ChaosTests PRIVATE -Wunused -Werror=unused) + if(CMAKE_BUILD_TYPE STREQUAL "Debug") target_compile_options(ChaosTests PRIVATE --coverage) target_link_options(ChaosTests PRIVATE --coverage)