Skip to content

Commit cebc4d7

Browse files
authored
Merge pull request #80793 from swiftlang/ktoso-patch-19
Avoid unused variable warning
2 parents 6a6380b + 7dcdd30 commit cebc4d7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

stdlib/public/Concurrency/Task.cpp

+1-2
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)