Skip to content

signed/unsigned mismatch warning in file generated by wv2winrt #3169

Open
@Take-A-Byte

Description

@Take-A-Byte

Description

Files generated by wv2winrt tool throws warning when compiled in x86 configuration

Version
SDK: 1.0.1264.42
Framework: UWP
OS: Win11

Repro Steps

  • I have a Adapter project similar to WinRTAdapter project in the sample
  • The Adapter project I am using depends on Windows.Foundation.Collections. Thus it creates a Windows.Foundation.Collections.g.cpp.

Actual Behavior

  • When compiling in x64 configuration, it compiles fine.
  • But when compiling in x86 configuration, I get a compiler warning C4018

Expected Behavior

  • Generated code compiles without any warnings.

Additional context
Exact warning that I get - warning C4018: '<': signed/unsigned mismatch (compiling source file Generated Files\wv2winrt\Windows.Foundation.Collections.g.cpp)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions