Skip to content

Commit 8e585ed

Browse files
chapuniakadutta
authored andcommitted
JobserverTest.cpp: Suppress a warning. [-Wunused-lambda-capture]
I don't know how to mark an item as `maybe_unused` on capture list. I also guess `i` may be removed out of byval capture.
1 parent 01f1838 commit 8e585ed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/unittests/Support/JobserverTest.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,7 @@ TEST_F(JobserverStrategyTest, ThreadPoolConcurrencyIsLimited) {
355355
int CurrentActive = ++ActiveTasks;
356356
LLVM_DEBUG(dbgs() << "Task " << i << ": Active tasks: " << CurrentActive
357357
<< "\n");
358+
(void)i;
358359
int OldMax = MaxActiveTasks.load();
359360
while (CurrentActive > OldMax)
360361
MaxActiveTasks.compare_exchange_weak(OldMax, CurrentActive);

0 commit comments

Comments
 (0)