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

folly/test/ThreadLocalBenchmark.cpp: avoid shadowing warning

Summary:
There was a doubly-nested loop, both with index "i".
Change the inner for-loop index from i to j.

Reviewed By: yfeldblum

Differential Revision: D4120589

fbshipit-source-id: c786d8f7bb1ee05fc990db898b15836032e93940
parent 908783cc
......@@ -66,7 +66,7 @@ DEFINE_int32(numThreads, 8, "Number simultaneous threads for benchmarks.");
for (int i = 0; i < FLAGS_numThreads; ++i) { \
threads.push_back(std::thread([&]() { \
var.reset(new int(0)); \
for (int i = 0; i < itersPerThread; ++i) { \
for (int j = 0; j < itersPerThread; ++j) { \
++(*var.get()); \
} \
})); \
......
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