Skip to content

Conversation

AlexGuteniev
Copy link
Contributor

@AlexGuteniev AlexGuteniev commented Oct 16, 2021

As DevCom-1004719 appears to be fixed partially fixed.

Intentionally leaving the second of these occurrences, which is not fixed:

STL/stl/inc/variant

Lines 1478 to 1480 in 8833270

(void) _Obj; // TRANSITION, DevCom-1004719
((void) _Args, ...); // TRANSITION, DevCom-1004719
_Throw_bad_variant_access();

@AlexGuteniev AlexGuteniev requested a review from a team as a code owner October 16, 2021 18:14
@CaseyCarter CaseyCarter added the enhancement Something can be improved label Oct 17, 2021
Copy link
Contributor

@CaseyCarter CaseyCarter left a comment

Choose a reason for hiding this comment

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

It's a bit odd to remove workarounds for a bug that isn't officially fixed, but given that this is just a warning false positive I'm happy to check in the removal to guard against regression.

@StephanTLavavej
Copy link
Member

Agreed. This is also consistent with previous commits (possibly before the GitHub era) - we originally had even more occurrences, and were able to reduce them as the compiler improved.

@StephanTLavavej StephanTLavavej self-assigned this Oct 19, 2021
@StephanTLavavej
Copy link
Member

I'm mirroring this to an MSVC-internal PR; please notify me if any further changes are pushed.

@StephanTLavavej StephanTLavavej merged commit 6e669f0 into microsoft:main Oct 20, 2021
@StephanTLavavej
Copy link
Member

Thanks for banishing these casts to the void! 🪄 😹 🎉

@AlexGuteniev AlexGuteniev deleted the 1004719 branch October 20, 2021 10:28
AZero13 pushed a commit to AZero13/STL that referenced this pull request Nov 4, 2021
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