-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Externals: Update fmt to 9.1.0 #11123
Conversation
Generally, you'd want to update anyway, since fmt 9.0.0 deprecates implicitly converting unscoped/regular enums into ints to make behavior consistent with scoped enum behavior. So all updating later does is potentially make things break since the deprecated facilities will likely be removed outright on the next major version. |
Indeed, that seems to be the cause of most of the errors. I've worked around that for now (mostly by excessive casts - I can convert to EnumFormatter later). The other issue is that Qt creates a |
3a4c14d
to
e7917d5
Compare
@@ -3,6 +3,11 @@ | |||
|
|||
#include "DolphinQt/Config/GraphicsModListWidget.h" | |||
|
|||
#ifdef _MSC_VER | |||
// Disable warning for hiding global declaration (qt uint vs fmt uint) | |||
#pragma warning(disable : 4459) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we have a fix for this in fmt
, please keep it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yup
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this good to be merged? |
Theoretically there could be some additional enums converted to enum classes, but that can also be done later on (and some of these, such as the IOS error codes, are trickier to change). So this is probably good to go now. We can't convert fmt to a submodule yet due to the extra patch. However, it looks like an equivalent same patch was adopted as fmtlib/fmt#3137, so we'd be able to use a submodule after that (although maybe fmt.vcxproj would still cause issues?) |
ca44696
to
8602293
Compare
This is mostly a test; I'm not aware of any benefits of updating at this time.