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

Silence a couple of /Wall warnings #4026

Merged
merged 2 commits into from
Sep 14, 2023

Conversation

StephanTLavavej
Copy link
Member

@StephanTLavavej StephanTLavavej commented Sep 13, 2023

Works towards DevCom-10368801 / VSO-1822115 "compiling std.ixx causes compiler warnings, even with /external:anglebrackets and /external:W0". (Additional changes are needed in the MSVC-internal repo: MSVC-PR-497556)

We don't attempt to be /Wall clean in general, but users are experiencing this as a regression due to the addition of the automatic build of the Standard Library Modules. Only a few warnings are being emitted so we can just clean them up. While this is motivated by the Modules, the changes are not modules-related.

I'm dealing with two warnings in this PR. First, I reported VSO-1885306 "warning C5039 shouldn't be emitted when an extern "C" function is marked noexcept(false)". <stacktrace> is correctly using noexcept(false), so we should suppress this warning in the header. The warning is potentially useful elsewhere, so I don't want to globally suppress it for the STL.

The second change is to globally suppress warning C5220 for the STL in <yvals_core.h>. This is a classically obnoxious warning saying that the compiler is going to do what the Standard requires it to do, which we never need to be told. (It affects <pplcancellation_token.h> and <ppltasks.h>; my MSVC-internal changes will enhance those headers to use the <yvals_core.h> suppression machinery.)

@StephanTLavavej StephanTLavavej added the enhancement Something can be improved label Sep 13, 2023
@StephanTLavavej StephanTLavavej requested a review from a team as a code owner September 13, 2023 20:48
@StephanTLavavej
Copy link
Member Author

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

@CaseyCarter CaseyCarter removed their assignment Sep 14, 2023
@StephanTLavavej StephanTLavavej merged commit 33d950d into microsoft:main Sep 14, 2023
37 checks passed
@StephanTLavavej StephanTLavavej deleted the tear-down-this-wall branch September 14, 2023 19:25
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.

2 participants