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

folly/test/SynchronizedTestLib-inl.h: avoid shadowing warnings

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

Reviewed By: igorsugak

Differential Revision: D4041931

fbshipit-source-id: fcddbc8636c16124a9711c4491a08cc7db76a224
parent 61b06488
...@@ -468,15 +468,15 @@ void testDeprecated() { ...@@ -468,15 +468,15 @@ void testDeprecated() {
EXPECT_EQ(10, obj.back()); EXPECT_EQ(10, obj.back());
EXPECT_EQ(1000, obj2->size()); EXPECT_EQ(1000, obj2->size());
UNSYNCHRONIZED(obj) { UNSYNCHRONIZED(o) {
EXPECT_EQ(1001, obj->size()); EXPECT_EQ(1001, o->size());
} }
} }
SYNCHRONIZED_CONST (obj) { SYNCHRONIZED_CONST (obj) {
EXPECT_EQ(1001, obj.size()); EXPECT_EQ(1001, obj.size());
UNSYNCHRONIZED(obj) { UNSYNCHRONIZED(o) {
EXPECT_EQ(1001, obj->size()); EXPECT_EQ(1001, o->size());
} }
} }
......
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