From: Christopher Dykes Date: Fri, 14 Jul 2017 17:29:54 +0000 (-0700) Subject: Fix building the stl_vector tests with -Wshadow-compatible-local X-Git-Tag: v2017.07.17.00~7 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4203522cd540ca69bf2828fd17e02a73ca59ad27;p=folly.git 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 --- 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); } }