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

Remove outdated MSVC checks #13621

Merged
2 commits merged into from
Jul 28, 2022
Merged

Remove outdated MSVC checks #13621

2 commits merged into from
Jul 28, 2022

Conversation

lhecker
Copy link
Member

@lhecker lhecker commented Jul 28, 2022

This removes outdated checks for MSVC versions that we don't support anymore.

src/common.build.pre.props Outdated Show resolved Hide resolved
-->
<DisableSpecificWarnings>4201;4312;4467;5105;26445;26813;%(DisableSpecificWarnings)</DisableSpecificWarnings>
<DisableSpecificWarnings Condition="'$(VCToolsVersion)' != '14.33.31629'">4201;4312;4467;5105;26445;26813;%(DisableSpecificWarnings)</DisableSpecificWarnings>
<DisableSpecificWarnings Condition="'$(VCToolsVersion)' == '14.33.31629'">4201;4312;4467;5105;26445;26813;26493;%(DisableSpecificWarnings)</DisableSpecificWarnings>
Copy link
Member

Choose a reason for hiding this comment

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

Is this gonna turn into a '$(VCToolsVersion)' &gt; '14.33.31629' && '$(VCToolsVersion)' &lt; 'some future version' in the future?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not sure why I never noticed but apparently this has been an issue for longer than that: https://godbolt.org/z/oanYPnzoc
So I'll just silently repurpose this PR to only remove the few Condition checks we don't need.

@lhecker lhecker added the Area-CodeHealth Issues related to code cleanliness, linting, rules, warnings, errors, static analysis, etc. label Jul 28, 2022
@lhecker lhecker changed the title Disable C26493 due to issues in MSVC 14.33.31629 Remove outdated MSVC checks Jul 28, 2022
@carlos-zamora carlos-zamora added the AutoMerge Marked for automatic merge by the bot when requirements are met label Jul 28, 2022
@ghost
Copy link

ghost commented Jul 28, 2022

Hello @carlos-zamora!

Because this pull request has the AutoMerge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@ghost ghost merged commit 4e5a0c1 into main Jul 28, 2022
@ghost ghost deleted the dev/lhecker/msvc-diagnostics-issues branch July 28, 2022 18:11
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-CodeHealth Issues related to code cleanliness, linting, rules, warnings, errors, static analysis, etc. AutoMerge Marked for automatic merge by the bot when requirements are met
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants