From: Jim Meyering Date: Wed, 19 Oct 2016 03:01:55 +0000 (-0700) Subject: folly/fibers/test/FibersTest.cpp: avoid shadowing warnings X-Git-Tag: v2016.10.24.00~21 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=17957da007cb8dfe46992d32d1988b2c94fa4117;p=folly.git folly/fibers/test/FibersTest.cpp: avoid shadowing warnings Summary: Fix warnings exposed by the upstream-proposed -Wshadow-compatible-local option. Differential Revision: D4041756 fbshipit-source-id: 21faf6ad6bf39b0df42e6ef27481d1c81d37ef99 --- diff --git a/folly/fibers/test/FibersTest.cpp b/folly/fibers/test/FibersTest.cpp index eeee0b2e..e587ab44 100644 --- a/folly/fibers/test/FibersTest.cpp +++ b/folly/fibers/test/FibersTest.cpp @@ -1564,7 +1564,7 @@ TEST(FiberManager, semaphore) { for (size_t i = 0; i < kTasks; ++i) { manager.addTask([&, completionCounter]() { - for (size_t i = 0; i < kIterations; ++i) { + for (size_t j = 0; j < kIterations; ++j) { sem.wait(); ++counter; sem.signal();