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

Fix build with VS2022 #1017

Merged
merged 2 commits into from
Oct 11, 2021
Merged

Fix build with VS2022 #1017

merged 2 commits into from
Oct 11, 2021

Conversation

jkotas
Copy link
Member

@jkotas jkotas commented Oct 11, 2021

VS2022 has VisualStudioVersion=17.0 that was unhandled in the project files and falling back to VS2015 build tools.

I have fixed this by deleting the fallback to VS2015/2017 build tools since it does not seem to work anyway.

@@ -4922,7 +4922,6 @@ IInspectableVftbl = global::WinRT.IInspectable.Vftbl.AbiToProjectionVftable,
XLANG_ASSERT(get_category(type) == category::interface_type);
auto type_name = write_type_name_temp(w, type, "%", typedef_name_type::CCW);

uint32_t const vtable_base = type.MethodList().first.index();
Copy link
Member Author

Choose a reason for hiding this comment

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

This is fixing unused variable warning with VS2022.

@jkotas
Copy link
Member Author

jkotas commented Oct 11, 2021

@Scottj1s @manodasanW PTLA

Also, I have submitted similar PR to TestWinRT repo: microsoft/TestWinRT#53

@manodasanW
Copy link
Member

/azp run

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@manodasanW manodasanW merged commit 41beec2 into microsoft:master Oct 11, 2021
@jkotas jkotas deleted the vs2022 branch October 11, 2021 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants