From 2d3f3267bf0519534e70d34bb055803e72d49cb4 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 18 Oct 2016 20:05:57 -0700 Subject: [PATCH] folly/test/ThreadLocalTest.cpp: avoid shadowing warnings Summary: Fix warnings exposed by the upstream-proposed -Wshadow-compatible-local option. Reviewed By: andrewjcg Differential Revision: D4041950 fbshipit-source-id: 7c18564273c5839c647709307f56b2fb5e0f6588 --- folly/test/ThreadLocalTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folly/test/ThreadLocalTest.cpp b/folly/test/ThreadLocalTest.cpp index c3a276d2..e333913e 100644 --- a/folly/test/ThreadLocalTest.cpp +++ b/folly/test/ThreadLocalTest.cpp @@ -425,7 +425,7 @@ TEST(ThreadLocal, Stress) { std::vector threads; threads.reserve(numThreads); - for (size_t i = 0; i < numThreads; ++i) { + for (size_t k = 0; k < numThreads; ++k) { threads.emplace_back([&objects] { for (size_t rep = 0; rep < numReps; ++rep) { for (size_t i = 0; i < objects.size(); ++i) { -- 2.34.1