projects
/
folly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85eb12f
)
folly/fibers/test/FibersTest.cpp: avoid shadowing warnings
author
Jim Meyering
<meyering@fb.com>
Wed, 19 Oct 2016 03:01:55 +0000
(20:01 -0700)
committer
Facebook Github Bot
<facebook-github-bot-bot@fb.com>
Wed, 19 Oct 2016 03:09:30 +0000
(20:09 -0700)
Summary: Fix warnings exposed by the upstream-proposed -Wshadow-compatible-local option.
Differential Revision:
D4041756
fbshipit-source-id:
21faf6ad6bf39b0df42e6ef27481d1c81d37ef99
folly/fibers/test/FibersTest.cpp
patch
|
blob
|
history
diff --git
a/folly/fibers/test/FibersTest.cpp
b/folly/fibers/test/FibersTest.cpp
index eeee0b2e9ed8e38778ebce07a7fc8a25925984be..e587ab44dff73ead067766582f7e7d11845d5501 100644
(file)
--- 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();