Skip to content

When using MSVC to compile v12.1.0, still many compilation warnings are generated #4607

Description

@EvgeniyITCS

Related to: #4565

size_t and unsigned __int64 do not match when compiling with MSVC x86, resulting in the compiler generating warnings. It is build failure if compiler setted to treat warnings as error.

[19:25:29] : [Python run] C:\Users\ContainerAdministrator\7e1acc4fec462\p\include\fmt/format.h(2537): error C2220: the following warning is treated as an error
[19:25:29] : [Python run] C:\Users\ContainerAdministrator\7e1acc4fec462\p\include\fmt/format.h(2537): warning C4244: 'argument': conversion from 'unsigned __int64' to 'size_t', possible loss of data

...

[19:25:29] : [Python run] C:\Users\ContainerAdministrator\7e1acc4fec462\p\include\fmt/format.h(2553): warning C4244: 'argument': conversion from 'unsigned __int64' to 'size_t', possible loss of data
[19:25:29] : [Python run] C:\Users\ContainerAdministrator\7e1acc4fec462\p\include\fmt/format.h(2599): warning C4244: 'argument': conversion from 'unsigned __int64' to 'size_t', possible loss of data

...

[19:25:29] : [Python run] C:\Users\ContainerAdministrator\7e1acc4fec462\p\include\fmt/format.h(2600): warning C4244: 'argument': conversion from 'unsigned __int64' to 'size_t', possible loss of data

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions