From: Jim Meyering Date: Wed, 19 Oct 2016 03:28:45 +0000 (-0700) Subject: folly/test/ThreadCachedIntTest.cpp: avoid shadowing warnings X-Git-Tag: v2016.10.24.00~16 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=759f0c9476ef4c9276fe8f8a086bbd8a0c7d7665;p=folly.git 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 --- 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; \ } \ })); \