From 759f0c9476ef4c9276fe8f8a086bbd8a0c7d7665 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 18 Oct 2016 20:28:45 -0700 Subject: [PATCH] folly/test/ThreadCachedIntTest.cpp: avoid shadowing warnings Summary: Fix warnings exposed by the upstream-proposed -Wshadow-compatible-local option. Reviewed By: igorsugak Differential Revision: D4041937 fbshipit-source-id: a9412dae6d1e43931f3b65bffaf462225f667f13 --- folly/test/ThreadCachedIntTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folly/test/ThreadCachedIntTest.cpp b/folly/test/ThreadCachedIntTest.cpp index 97ce60c2..1543bdaa 100644 --- a/folly/test/ThreadCachedIntTest.cpp +++ b/folly/test/ThreadCachedIntTest.cpp @@ -274,7 +274,7 @@ MAKE_MT_CACHE_SIZE_BM(32); std::vector threads; \ for (int i = 0; i < FLAGS_numThreads; ++i) { \ threads.push_back(std::thread([&]() { \ - for (int i = 0; i < iterPerThread; ++i) { \ + for (int j = 0; j < iterPerThread; ++j) { \ inc_stmt; \ } \ })); \ -- 2.34.1