1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

[Support] In tests, fix warning: variable ‘Threads’ set but not used

This commit is contained in:
Alexandre Ganea 2020-02-15 09:03:38 -05:00
parent 66f957c5c7
commit 2a2b6dfe5d

View File

@ -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();