From 4203522cd540ca69bf2828fd17e02a73ca59ad27 Mon Sep 17 00:00:00 2001 From: Christopher Dykes Date: Fri, 14 Jul 2017 10:29:54 -0700 Subject: [PATCH] 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 --- folly/test/stl_tests/StlVectorTest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/folly/test/stl_tests/StlVectorTest.cpp b/folly/test/stl_tests/StlVectorTest.cpp index f82d741a..257a0e8d 100644 --- a/folly/test/stl_tests/StlVectorTest.cpp +++ b/folly/test/stl_tests/StlVectorTest.cpp @@ -1682,8 +1682,8 @@ STL_TEST("23.2.1 Table 96.10-11", copyConstruction, ) << "only a shallow copy was made"; if (false) { - Vector(ca); - Vector u = ca; + Vector(ca2); + Vector u2 = ca2; } } @@ -1699,7 +1699,7 @@ STL_TEST("23.2.1 Table 96.12", moveConstruction, is_destructible, a) { ASSERT_TRUE(dsa == u); if (false) { - Vector u = move(a); + Vector u2 = move(a); } } -- 2.34.1