Skip to content

Commit

Permalink
Eliminate intel compiler warnings (#2802)
Browse files Browse the repository at this point in the history
The intel compiler emits  `declaration hides parameter "loc" ..."  and similar warnings for "out" and "args" since the function arguments are the same as other visible symbols.  This is for intel-2021.3.0 20210609.
  • Loading branch information
gsjaardema authored Mar 7, 2022
1 parent e3d688e commit 5bc39d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/fmt/format.h
Original file line number Diff line number Diff line change
Expand Up @@ -3150,9 +3150,9 @@ void vformat_to(
basic_format_parse_context<Char> parse_context;
buffer_context<Char> context;

format_handler(buffer_appender<Char> out, basic_string_view<Char> str,
basic_format_args<buffer_context<Char>> args, locale_ref loc)
: parse_context(str), context(out, args, loc) {}
format_handler(buffer_appender<Char> p_out, basic_string_view<Char> str,
basic_format_args<buffer_context<Char>> p_args, locale_ref p_loc)
: parse_context(str), context(p_out, p_args, p_loc) {}

void on_text(const Char* begin, const Char* end) {
auto text = basic_string_view<Char>(begin, to_unsigned(end - begin));
Expand Down

0 comments on commit 5bc39d3

Please sign in to comment.