We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
xchar.h
-fsigned-char
On the latest {fmt} version (8.0, master) I get these warnings just by including {fmt} headers (https://godbolt.org/z/arEYeq9rx):
master
/fmt/trunk/include/fmt/format.h:1026:17: warning: comparison of integer expressions of different signedness: 'const wchar_t' and 'const char' [-Wsign-compare] 1026 | return lhs[0] == rhs[0] && lhs[1] == rhs[1]; | ~~~~~~~^~~~~~~~~ ... /fmt/trunk/include/fmt/core.h:2092:14: warning: comparison of integer expressions of different signedness: 'const wchar_t' and 'char' [-Wsign-compare] 2092 | if (*out == value) return true; | ~~~~~^~~~~~~~
from here:
fmt/include/fmt/format.h
Lines 1025 to 1027 in c3c27e5
fmt/include/fmt/core.h
Lines 2088 to 2095 in c3c27e5
These warnings are pretty logical since the signedness of char-types (char and wchar_t) is different in this case - https://godbolt.org/z/1Pdxbesvf.
char
wchar_t
Still, there are no warnings with {fmt} 7.1.3 - https://godbolt.org/z/T1qPjfoaG.
I'm not familiar with that part of the library, so maybe someone can find the cause of this regression in few seconds, for example, @vitaut 😉
The text was updated successfully, but these errors were encountered:
It's unclear why there were no warnings in 7.1.3 but I fixed them in 785908e. Thanks for reporting.
Sorry, something went wrong.
Thank you for fixing this!
No branches or pull requests
On the latest {fmt} version (8.0,
master
) I get these warnings just by including {fmt} headers (https://godbolt.org/z/arEYeq9rx):from here:
fmt/include/fmt/format.h
Lines 1025 to 1027 in c3c27e5
fmt/include/fmt/core.h
Lines 2088 to 2095 in c3c27e5
These warnings are pretty logical since the signedness of char-types (
char
andwchar_t
) is different in this case - https://godbolt.org/z/1Pdxbesvf.Still, there are no warnings with {fmt} 7.1.3 - https://godbolt.org/z/T1qPjfoaG.
I'm not familiar with that part of the library, so maybe someone can find the cause of this regression in few seconds, for example, @vitaut 😉
The text was updated successfully, but these errors were encountered: