-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
MSVC 12: Warnings #145
Comments
Thanks for reporting. Could you by any chance give an example that triggers the warnings? |
I get these same warnings when just compiling format.cc. Currently compiling with Visual Studio (12) 2013. I only get these errors when compiling for 64bit with /W4. I believe it has to do with the So I dont think there is any bad or dangerous code. The compiler is reading more into it than it has to. I wrapped all the
I dont know what the right solution is though. |
Naios/TrinityCore@f218d80 produces a lot of warnings with the latest cppformat (rev 3a5573a). Probably every log message which is calling fmt::sprintf produces a warning for example: TC_LOG_INFO("sql.updates", "Updating %s database...", DBUpdater<T>::GetTableName().c_str()); |
I think d238799 should fix these warnings. Unfortunately I couldn't verify the fix as the warnings are not reported in the AppVeyor build even with /W4. Thanks @amc522 and @Naios. |
Yep, that fixed the warnings. Just tested with x86 and x64 in Visual Studio 2013 and the warnings no longer appear. Thanks! |
Thank you for the confirmation, @amc522. |
On: 3a5573a
The text was updated successfully, but these errors were encountered: