Skip to content

When using MSVC to compile v12.0.0, many compilation warnings are generated #4565

Description

@esoft-com

size_t and unsigned __int64 do not match when compiling with x86, resulting in the compiler generating a lot of compilation information

fmt\format.h(2509,32): warning C4244: 'argument': conversion from 'unsigned __int64' to 'size_t', possible loss of data [app.vcxproj]
fmt\format.h(3505): message : see reference to function template instantiation'OutputIt fmt::v12::detail::write_fixed<Char,fmt::v12::detail::fallback_digit_grouping<Char>,OutputIt,fmt::v12::detail::dragonbox::decimal_fp<float>>(OutputIt,const DecimalFP &,int,Char,const fmt::v12::format_specs &,fmt::v12::sign,fmt::v12::locale_ref)' being compiled [app.vcxproj]
         with
         [
             OutputIt=fmt::v12::basic_appender<char>,
             Char=char,
             DecimalFP=fmt::v12::detail::dragonbox::decimal_fp<float>
         ]
fmt\format.h(3649): message : see reference to function template instantiation 'OutputIt fmt::v12::detail::write<Char,fmt::v12::basic_appender<char>,T,0>(OutputIt,T)' being compiled [app.vcxproj]
         with
         [
             OutputIt=fmt::v12::basic_appender<char>,
             Char=char,
             T=float
         ]
fmt\base.h(2541): message : see reference to function template instantiation 'void fmt::v12::detail::default_arg_formatter<char>::operator ()<float,0>(T)' being compiled [app.vcxproj]
         with
         [
             T=float
         ]
fmt\base.h(2541): message : see reference to function template instantiation 'void fmt::v12::detail::default_arg_formatter<char>::operator ()<float,0>(T)' being compiled [app.vcxproj]
         with
         [
             T=float
         ]
fmt\format-inl.h(1460): message : see reference to function template instantiation 'void fmt::v12::basic_format_arg<Context>::visit<fmt::v12::detail::default_arg_formatter<char>>(Visitor &&)const' being compiled [app.vcxproj]
         with
         [
             Context=fmt::v12::context,
             Visitor=fmt::v12::detail::default_arg_formatter<char>
         ]
fmt\format-inl.h(1460): message : see reference to function template instantiation 'void fmt::v12::basic_format_arg<Context>::visit<fmt::v12::detail::default_arg_formatter<char>>(Visitor &&)const' being compiled [app.vcxproj]
         with
         [
             Context=fmt::v12::context,
             Visitor=fmt::v12::detail::default_arg_formatter<char>
         ]

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions