forked from OSchip/llvm-project
[Support] In tests, fix warning: variable ‘Threads’ set but not used
This commit is contained in:
parent
8a48c4a97c
commit
b25fc4123c
|
@ -179,10 +179,8 @@ void ThreadPoolTest::TestAllThreads(ThreadPoolStrategy S) {
|
|||
|
||||
llvm::DenseSet<llvm::BitVector> ThreadsUsed;
|
||||
std::mutex Lock;
|
||||
unsigned Threads = 0;
|
||||
{
|
||||
ThreadPool Pool(S);
|
||||
Threads = Pool.getThreadCount();
|
||||
for (size_t I = 0; I < 10000; ++I) {
|
||||
Pool.async([&] {
|
||||
waitForMainThread();
|
||||
|
|
Loading…
Reference in New Issue