From: Jim Meyering Date: Wed, 19 Oct 2016 03:05:57 +0000 (-0700) Subject: folly/test/ThreadLocalTest.cpp: avoid shadowing warnings X-Git-Tag: v2016.10.24.00~19 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2d3f3267bf0519534e70d34bb055803e72d49cb4;p=folly.git 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 --- 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) {