From 6c7dd63164ab23f48c87b0e4a556cbfaf6bbc841 Mon Sep 17 00:00:00 2001 From: baldurk Date: Sat, 24 Oct 2026 02:08:17 +0100 Subject: [PATCH] Remove -Wno-unused-lambda-capture so we get those errors on normal clang * Unclear why this was blocked on OS X clang as it clearly fires, but this means this warning is no longer OS X only which makes iterating on normal machines easier. --- CMakeLists.txt | 4 ---- 1 file changed, 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 64fa49c2e..88f0672c3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -436,10 +436,6 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") list(APPEND warning_flags -Wshorten-64-to-32) endif() - if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.0 AND NOT APPLE) - list(APPEND warning_flags -Wno-unused-lambda-capture) - endif() - if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 13.0 AND NOT APPLE) list(APPEND warning_flags -Wno-unused-but-set-variable -Wno-deprecated-copy) endif()