Skip to content
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

Add [[noreturn]] for some functions #3865

Merged
merged 2 commits into from
Jul 14, 2023

Conversation

achabense
Copy link
Contributor

They are: _Thrd_abort, _Thrd_exit and _ReportUnobservedException.

@achabense achabense requested a review from a team as a code owner July 11, 2023 19:11
@CaseyCarter

This comment was marked as resolved.

@StephanTLavavej

This comment was marked as resolved.

@StephanTLavavej StephanTLavavej added the enhancement Something can be improved label Jul 12, 2023
@StephanTLavavej StephanTLavavej self-assigned this Jul 12, 2023
@StephanTLavavej StephanTLavavej removed their assignment Jul 13, 2023
@StephanTLavavej
Copy link
Member

This is reasonable for consistency although two of the functions are preserved for binary compatibility (i.e. are otherwise unused), the third is debug-only, and there are no changes to the sizes of the DLLs.

@StephanTLavavej StephanTLavavej self-assigned this Jul 13, 2023
@StephanTLavavej
Copy link
Member

I'm speculatively mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed.

@StephanTLavavej StephanTLavavej merged commit 0574f20 into microsoft:main Jul 14, 2023
@StephanTLavavej
Copy link
Member

Thanks for noticing and fixing these inconsistencies! ⛔ 🚪 🏃

@achabense achabense deleted the add_noreturn branch July 14, 2023 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Something can be improved
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants