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

folly/test/SmallLocksTest.cpp: avoid shadowing warnings

Summary: Fix warnings exposed by the upstream-proposed -Wshadow-compatible-local option.

Reviewed By: igorsugak

Differential Revision: D4041910

fbshipit-source-id: d00ea6b294559f80244a226fadf1a3a54c50c78a
parent 2d3f3267
......@@ -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);
......
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