projects
/
folly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d3f326
)
folly/test/SmallLocksTest.cpp: avoid shadowing warnings
author
Jim Meyering
<meyering@fb.com>
Wed, 19 Oct 2016 03:27:40 +0000
(20:27 -0700)
committer
Facebook Github Bot
<facebook-github-bot-bot@fb.com>
Wed, 19 Oct 2016 03:38:54 +0000
(20:38 -0700)
Summary: Fix warnings exposed by the upstream-proposed -Wshadow-compatible-local option.
Reviewed By: igorsugak
Differential Revision:
D4041910
fbshipit-source-id:
d00ea6b294559f80244a226fadf1a3a54c50c78a
folly/test/SmallLocksTest.cpp
patch
|
blob
|
history
diff --git
a/folly/test/SmallLocksTest.cpp
b/folly/test/SmallLocksTest.cpp
index 020c713623b62b98d1ef7637a1d154305ec5d903..5bb9ddb59a06bb54c7d9b5f5a8c655da582b5c01 100644
(file)
--- a/
folly/test/SmallLocksTest.cpp
+++ b/
folly/test/SmallLocksTest.cpp
@@
-75,8
+75,8
@@
void splock_test() {
MSLGuard g(v.lock);
int first = v.ar[0];
- for (size_t
i = 1; i < sizeof v.ar / sizeof i; ++i
) {
- EXPECT_EQ(first, v.ar[
i
]);
+ for (size_t
j = 1; j < sizeof v.ar / sizeof j; ++j
) {
+ EXPECT_EQ(first, v.ar[
j
]);
}
int byte = folly::Random::rand32(rng);