Skip to content

Resolve warnings in the Concurrency runtime #70948

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

tshortli
Copy link
Contributor

Squashes a few warnings in files under stdlib/public/Concurrency/.

Confirmed with Konrad that this was copypasta.
The `swift_unreachable()` is currently statically unreachable but we'd like to
leave it in place in case the control flow before it changes in the future.
@tshortli tshortli requested review from ktoso and kavon as code owners January 17, 2024 00:22
@tshortli
Copy link
Contributor Author

@swift-ci please smoke test

executor.enqueue(ExecutorJob(context: unownedJob._context))
} else {
executor.enqueue(unownedJob)
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep, that's safe -- thank you

swift_unreachable("expected to early return from when handling offer of last task in group");
#pragma clang diagnostic pop
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thank you -- yeah it's better to keep this comitted in case the control flow would change and we wrongly allowed this to be entered

@tshortli tshortli enabled auto-merge January 17, 2024 02:36
@tshortli tshortli merged commit 92a0867 into swiftlang:main Jan 17, 2024
@tshortli tshortli deleted the resolve-concurrency-runtime-warnings branch January 17, 2024 04:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants