From 9781a1698ee0756ef1eaaf96930113ed7cb6d3ee Mon Sep 17 00:00:00 2001 From: Jan Wassenberg Date: Tue, 7 Oct 2025 02:39:14 -0700 Subject: [PATCH] fix shadowing warning PiperOrigin-RevId: 816115101 --- hwy/contrib/algo/find_test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hwy/contrib/algo/find_test.cc b/hwy/contrib/algo/find_test.cc index 8593b60e94..c525f25928 100644 --- a/hwy/contrib/algo/find_test.cc +++ b/hwy/contrib/algo/find_test.cc @@ -173,8 +173,8 @@ struct TestFindIf { // Includes out-of-range value 9 to test the not-found path. for (int val = min_val; val <= 9; ++val) { #if HWY_GENERIC_LAMBDA - const auto greater = [val](const auto d, const auto v) HWY_ATTR { - return Gt(v, Set(d, ConvertScalarTo(val))); + const auto greater = [val](const auto d2, const auto v) HWY_ATTR { + return Gt(v, Set(d2, ConvertScalarTo(val))); }; #else const GreaterThan greater(val);