Skip to content

Commit 7dcdd30

Browse files
authored
Avoid unused variable warning
1 parent 1f93566 commit 7dcdd30

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

stdlib/public/Concurrency/Task.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1800,8 +1800,7 @@ static void swift_task_removeCancellationHandlerImpl(
18001800
auto task = swift_task_getCurrent();
18011801
assert(task->_private()._status().load(std::memory_order_relaxed).getInnermostRecord() == record &&
18021802
"We expect that the popped record will be exactly first as well as that it is of the expected type");
1803-
if (auto poppedRecord =
1804-
popStatusRecordOfType<CancellationNotificationStatusRecord>(task)) {
1803+
if (popStatusRecordOfType<CancellationNotificationStatusRecord>(task)) {
18051804
swift_task_dealloc(record);
18061805
}
18071806
}

0 commit comments

Comments
 (0)