summaryrefslogtreecommitdiffstats
path: root/gnu/llvm/unittests/Support/ThreadPool.cpp
diff options
context:
space:
mode:
authorpatrick <patrick@openbsd.org>2017-10-04 20:27:34 +0000
committerpatrick <patrick@openbsd.org>2017-10-04 20:27:34 +0000
commit31eb748944903b7f4f38afda9851951ca9dfc1ae (patch)
tree9b95b6ea45d0874d75eb05b90c0840e191416439 /gnu/llvm/unittests/Support/ThreadPool.cpp
parentDon't try to handle IPv4-compatible IPv6 addresses (diff)
downloadwireguard-openbsd-31eb748944903b7f4f38afda9851951ca9dfc1ae.tar.xz
wireguard-openbsd-31eb748944903b7f4f38afda9851951ca9dfc1ae.zip
Import LLVM 5.0.0 release including clang, lld and lldb.
Diffstat (limited to 'gnu/llvm/unittests/Support/ThreadPool.cpp')
-rw-r--r--gnu/llvm/unittests/Support/ThreadPool.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/llvm/unittests/Support/ThreadPool.cpp b/gnu/llvm/unittests/Support/ThreadPool.cpp
index 8e03aacfb1e..0da33ad50c0 100644
--- a/gnu/llvm/unittests/Support/ThreadPool.cpp
+++ b/gnu/llvm/unittests/Support/ThreadPool.cpp
@@ -90,7 +90,7 @@ TEST_F(ThreadPoolTest, AsyncBarrier) {
ThreadPool Pool;
for (size_t i = 0; i < 5; ++i) {
- Pool.async([this, &checked_in, i] {
+ Pool.async([this, &checked_in] {
waitForMainThread();
++checked_in;
});
@@ -154,7 +154,7 @@ TEST_F(ThreadPoolTest, PoolDestruction) {
{
ThreadPool Pool;
for (size_t i = 0; i < 5; ++i) {
- Pool.async([this, &checked_in, i] {
+ Pool.async([this, &checked_in] {
waitForMainThread();
++checked_in;
});