Bug 1406980 - Fix the -Wunused-lambda-capture warning r?gsquelart draft
authorSylvestre Ledru <sledru@mozilla.com>
Mon, 09 Oct 2017 18:36:10 +0200
changeset 676750 f14f1218655d66e77873f088855c605dc299472a
parent 676713 613f64109bdef590b9748355441b3c620efa7be5
child 680049 3707381868f07717ace471bf69d93457f7b762ed
push id83624
push userbmo:sledru@mozilla.com
push dateMon, 09 Oct 2017 16:36:50 +0000
reviewersgsquelart
bugs1406980
milestone58.0a1
Bug 1406980 - Fix the -Wunused-lambda-capture warning r?gsquelart MozReview-Commit-ID: HtItBaoGenR
dom/media/doctor/gtest/TestMultiWriterQueue.cpp
--- a/dom/media/doctor/gtest/TestMultiWriterQueue.cpp
+++ b/dom/media/doctor/gtest/TestMultiWriterQueue.cpp
@@ -143,17 +143,17 @@ TestMultiWriterQueueMT(int aWriterThread
     NS_RELEASE(array[k]);
   }
   delete[] array;
 
   // There may be a few more elements that haven't been read yet.
   q.PopAll([&pops](const int& i) { ++pops; });
   const int pushes = aWriterThreads * loops;
   EXPECT_EQ(pushes, pops);
-  q.PopAll([&pops](const int& i) { EXPECT_TRUE(false); });
+  q.PopAll([](const int& i) { EXPECT_TRUE(false); });
 
   double duration = mozilla::ToSeconds(mozilla::DDNow()) - start - 0.1;
   printf("%s threads=%dw+%dr loops/thread=%d pushes=pops=%d duration=%fs "
          "pushes/s=%f buffers: live=%d (w %d) reusable=%d (w %d) "
          "alloc=%d (w %d)\n",
          aPrintPrefix,
          aWriterThreads,
          aReaderThreads,
@@ -392,9 +392,9 @@ TEST(MultiWriterQueue, nsDequeBenchmark)
   TestMultiWriterQueueMT<DequeWrapperAW>(
     8, 0, 2 * 1024 * 1024, "DequeWrapperAW ");
   TestMultiWriterQueueMT<DequeWrapperMW>(
     8, 0, 2 * 1024 * 1024, "DequeWrapperMW ");
   TestMultiWriterQueueMT<DequeWrapperMT>(
     8, 0, 2 * 1024 * 1024, "DequeWrapperMT ");
   TestMultiWriterQueueMT<DequeWrapperMT>(
     8, 1, 2 * 1024 * 1024, "DequeWrapperMT ");
-}
\ No newline at end of file
+}