Fix violations of unused-lambda-capture
[folly.git] / folly / futures / test / FutureTest.cpp
index 144a924956e8a83d984d1a75606aa2cb75ae4403..3bfb8e331fa986d86d67fb2f89956afa53cc005c 100644 (file)
@@ -618,7 +618,10 @@ TEST(Future, finishBigLambda) {
   EXPECT_EQ(bulk_data[0], 0);
 
   Promise<int> p;
-  auto f = p.getFuture().then([x, bulk_data](Try<int>&& t) { *x = t.value(); });
+  auto f = p.getFuture().then([x, bulk_data](Try<int>&& t) {
+    (void)bulk_data;
+    *x = t.value();
+  });
 
   // The callback hasn't executed
   EXPECT_EQ(0, *x);