Bug 1406980 - Fix the -Wunused-lambda-capture warning r=gerald
authorSylvestre Ledru <sledru@mozilla.com>
Mon, 09 Oct 2017 18:36:10 +0200
changeset 427877 e6510aeb4e94df029cc47d2d00cd2f19ba5cc9d3
parent 427876 d57bcfffe5ba6daa51d76fb87ab64dfb44055291
child 427878 024ce7dd2f65d6266fc86b2c330ae2e3347df415
push id97
push userfmarier@mozilla.com
push dateSat, 14 Oct 2017 01:12:59 +0000
reviewersgerald
bugs1406980
milestone58.0a1
Bug 1406980 - Fix the -Wunused-lambda-capture warning r=gerald 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
+}