Skip to content

Conversation

@StephanTLavavej
Copy link
Member

Mark Hall is implementing constinit for MSVC in internal MSVC-PR-301193 and needs to suppress a harmless warning in test code.

We disable magic statics in our test suite, and enable the off-by-default warning C4640, to find any places where we're unintentionally using magic statics in product code. Here, this test code is eligible for constinit, but needs magic statics because its destructor is non-trivial. That's okay, so we can just suppress the warning.

@StephanTLavavej StephanTLavavej added the test Related to test code label Feb 2, 2021
@StephanTLavavej StephanTLavavej requested a review from a team as a code owner February 2, 2021 09:11
@StephanTLavavej StephanTLavavej added the blocked Something is preventing work on this label Feb 3, 2021
@StephanTLavavej StephanTLavavej removed the blocked Something is preventing work on this label Mar 24, 2021
@StephanTLavavej StephanTLavavej merged commit 21dd369 into microsoft:main Mar 24, 2021
@StephanTLavavej StephanTLavavej deleted the constinit_mirror branch March 24, 2021 05:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test Related to test code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants