From 262e6f9c178f3899c8594eb3ec585c514cbbc520 Mon Sep 17 00:00:00 2001 From: Tillmann Karras Date: Fri, 21 Feb 2025 02:35:01 +0000 Subject: [PATCH] CMake: don't enable -Wshadow-uncaptured-local This warning unhelpfully triggers for the `[x = std::move(x)]` pattern which is used quite a few times in Dolphin. --- Source/CMakeLists.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt index ace938da51..466fc2e90f 100644 --- a/Source/CMakeLists.txt +++ b/Source/CMakeLists.txt @@ -42,7 +42,6 @@ else() check_and_add_flag(LOGICAL_OP -Wlogical-op) check_and_add_flag(SHADOW -Wshadow) check_and_add_flag(SHADOW_FIELD_IN_CONSTRUCTOR -Wshadow-field-in-constructor) - check_and_add_flag(SHADOW_UNCAPTURED_LOCAL -Wshadow-uncaptured-local) check_and_add_flag(INIT_SELF -Winit-self) check_and_add_flag(MISSING_DECLARATIONS -Wmissing-declarations) check_and_add_flag(MISSING_VARIABLE_DECLARATIONS -Wmissing-variable-declarations)