diff --git a/libmemunreachable/tests/ThreadCapture_test.cpp b/libmemunreachable/tests/ThreadCapture_test.cpp index 41ed84ee0..44aabd755 100644 --- a/libmemunreachable/tests/ThreadCapture_test.cpp +++ b/libmemunreachable/tests/ThreadCapture_test.cpp @@ -55,7 +55,7 @@ class ThreadListTest : public ::testing::TestWithParam { threads_.reserve(threads); tids_.reserve(threads); for (unsigned int i = 0; i < threads; i++) { - threads_.emplace_back([&, i, threads, this]() { + threads_.emplace_back([&, threads, this]() { { std::lock_guard lk(m_); tids_.push_back(gettid());