folly/futures/test/ViaTest.cpp: avoid shadowing warnings
authorJim Meyering <meyering@fb.com>
Wed, 19 Oct 2016 03:29:34 +0000 (20:29 -0700)
committerFacebook Github Bot <facebook-github-bot-bot@fb.com>
Wed, 19 Oct 2016 03:38:54 +0000 (20:38 -0700)
Summary: Fix warnings exposed by the upstream-proposed -Wshadow-compatible-local option.

Reviewed By: igorsugak

Differential Revision: D4041769

fbshipit-source-id: 257bfe9370279f755b8e965ffc1c37fef454d4c4

folly/futures/test/ViaTest.cpp

index 765fdf6c74010f9b62127ab8bd5505f3b57c0a2e..2914cb2a7f0bf852919544104ea71bac6f33e623 100644 (file)
@@ -143,9 +143,9 @@ TEST_F(ViaFixture, chainVias) {
     return 1;
   }).then([=](int val) {
     return makeFuture(val).via(westExecutor.get())
-      .then([=](int val) mutable {
+      .then([=](int v) mutable {
         EXPECT_EQ(std::this_thread::get_id(), westThreadId);
-        return val + 1;
+        return v + 1;
       });
   }).then([=](int val) {
     // even though ultimately the future that triggers this one executed in