Fix building the stl_vector tests with -Wshadow-compatible-local
[folly.git] / folly / test / stl_tests / StlVectorTest.cpp
index f82d741af2422c0fb575bcb8b1b3557fc953087c..257a0e8d811d6911fcc93f834237e18b7b4ad14f 100644 (file)
@@ -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);
   }
 }