Bug 1406980 - Fix the -Wunused-lambda-capture warning r?gsquelart
MozReview-Commit-ID: HtItBaoGenR
--- 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
+}