You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dep\cppformat\format.h(2715): warning C4127: conditional expression is constant
src\server\shared\Utilities\StringFormat.h(30) : see reference to function template instantiation 'std::string fmt::sprintf<uint32>(fmt::StringRef,const uint32 &)' being compiled
src\server\shared\Logging\Log.h(67) : see reference to function template instantiation 'std::string Trinity::StringFormat<uint32>(const char *,const uint32 &)' being compiled
src\server\shared\database\Field.h(330) : see reference to function template instantiation 'void Log::outMessage<uint32>(const std::string &,const LogLevel,const char *,const uint32 &)' being compiled
Or
6>C:\Source\TrinityCore335\dep\cppformat\format.h(872): warning C4127: conditional expression is constant (C:\Source\TrinityCore335\src\server\worldserver\Main.cpp)
6> C:\Source\TrinityCore335\dep\cppformat\format.h(871) : while compiling class template member function 'fmt::internal::MakeValue<char>::MakeValue(unsigned long)'
6> C:\Source\TrinityCore335\dep\cppformat\format.h(2715) : see reference to function template instantiation 'fmt::internal::MakeValue<char>::MakeValue(unsigned long)' being compiled
6> C:\Source\TrinityCore335\dep\cppformat\format.h(2715) : see reference to class template instantiation 'fmt::internal::MakeValue<char>' being compiled
6> C:\Source\TrinityCore335\src\server\shared\Utilities\StringFormat.h(30) : see reference to function template instantiation 'std::string fmt::sprintf<uint32>(fmt::StringRef,const uint32 &)' being compiled
The actual sprintf format call is "SQL::SizeForType(): invalid field type %u", uint32(field->type).
aab64b5
Example:
Or
The actual sprintf format call is
"SQL::SizeForType(): invalid field type %u", uint32(field->type)
.We didn't find out what causes this warning, but we have a lot of it in our TrinityCore/TrinityCore@589296d build when compiling with \W4: http://pastebin.com/HNhKtzBZ after upgrading from revision bf8636c.
The text was updated successfully, but these errors were encountered: