Commit 759f0c94 authored by Jim Meyering's avatar Jim Meyering Committed by Facebook Github Bot

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
parent 00de3cea
......@@ -274,7 +274,7 @@ MAKE_MT_CACHE_SIZE_BM(32);
std::vector<std::thread> 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; \
} \
})); \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment