Commit 4203522c authored by Christopher Dykes's avatar Christopher Dykes Committed by Facebook Github Bot

Fix building the stl_vector tests with -Wshadow-compatible-local

Summary: It was shadowing locals.

Reviewed By: yfeldblum

Differential Revision: D5422356

fbshipit-source-id: 91da6fcf0b2ea3821394068e9847976e04f43ca9
parent a45eee72
...@@ -1682,8 +1682,8 @@ STL_TEST("23.2.1 Table 96.10-11", copyConstruction, ...@@ -1682,8 +1682,8 @@ STL_TEST("23.2.1 Table 96.10-11", copyConstruction,
) << "only a shallow copy was made"; ) << "only a shallow copy was made";
if (false) { if (false) {
Vector(ca); Vector(ca2);
Vector u = ca; Vector u2 = ca2;
} }
} }
...@@ -1699,7 +1699,7 @@ STL_TEST("23.2.1 Table 96.12", moveConstruction, is_destructible, a) { ...@@ -1699,7 +1699,7 @@ STL_TEST("23.2.1 Table 96.12", moveConstruction, is_destructible, a) {
ASSERT_TRUE(dsa == u); ASSERT_TRUE(dsa == u);
if (false) { if (false) {
Vector u = move(a); Vector u2 = move(a);
} }
} }
......
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