-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Remove type cast as mxe(mingw32) compiler complains about useless-cast #3624
Conversation
when FMT_PEDANTIC && FMT_WERROR options are enabled """ error: useless cast to type 'class fmt::v10::basic_format_args<fmt::v10::basic_format_context<fmt::v10::appender, char> >' [-Werror=useless-cast] 1449 | basic_format_args<buffer_context<char>>(args)); """
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.
Thanks for the PR
include/fmt/format-inl.h
Outdated
@@ -1446,7 +1446,7 @@ FMT_FUNC bool write_console(std::FILE* f, string_view text) { | |||
FMT_FUNC void vprint_mojibake(std::FILE* f, string_view fmt, format_args args) { | |||
auto buffer = memory_buffer(); | |||
detail::vformat_to(buffer, fmt, | |||
basic_format_args<buffer_context<char>>(args)); | |||
args); |
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.
args
should go on the previous line now that it fits there.
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.
Hi Vitaut,
Changes done as per your suggestion.
Hi Vitaut, Changes done as per your suggestion. |
Thanks |
fmtlib#3624) Remove type cast as mxe(mingw32) compiler complains about useless-cast when FMT_PEDANTIC && FMT_WERROR options are enabled """ error: useless cast to type 'class fmt::v10::basic_format_args<fmt::v10::basic_format_context<fmt::v10::appender, char> >' [-Werror=useless-cast] 1449 | basic_format_args<buffer_context<char>>(args)); """
Remove type cast as mxe(mingw32) compiler complains about useless-cast
when FMT_PEDANTIC && FMT_WERROR options are enabled """
error: useless cast to type 'class fmt::v10::basic_format_args<fmt::v10::basic_format_context<fmt::v10::appender, char> >' [-Werror=useless-cast]
1449 | basic_format_args<buffer_context>(args));
"""