Fix violations of unused-lambda-capture
[folly.git] / folly / experimental / test / AtomicSharedPtrTest.cpp
index 9598d9697ece04a1cd484584e6d9385fa0f46887..06b42d8a12111305d23bf5ae161a0f409b4ea516 100644 (file)
@@ -156,7 +156,7 @@ TEST(AtomicSharedPtr, DeterministicTest) {
       fooptr(foo);
   std::vector<std::thread> threads(FLAGS_num_threads);
   for (int tid = 0; tid < FLAGS_num_threads; ++tid) {
-    threads[tid] = DSched::thread([&, tid]() {
+    threads[tid] = DSched::thread([&]() {
       for (int i = 0; i < 1000; i++) {
         auto l = fooptr.load();
         EXPECT_TRUE(l.get() != nullptr);