Skip to content

Commit

Permalink
VS2022 17.2: C4189: 'zero': local variable is initialized but not ref…
Browse files Browse the repository at this point in the history
…erenced #2891 (#2892)

VS2022 17.2: C4189: 'zero': local variable is initialized but not referenced #2891

Co-authored-by: Ivan Shynkarenka <[email protected]>
  • Loading branch information
chronoxor and Ivan Shynkarenka authored May 13, 2022
1 parent f6f920a commit 3e28dc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fmt/format.h
Original file line number Diff line number Diff line change
Expand Up @@ -2203,7 +2203,7 @@ FMT_CONSTEXPR20 auto do_write_float(OutputIt out, const DecimalFP& fp,
-> OutputIt {
auto significand = fp.significand;
int significand_size = get_significand_size(fp);
constexpr Char zero = static_cast<Char>('0');
const Char zero = static_cast<Char>('0');
auto sign = fspecs.sign;
size_t size = to_unsigned(significand_size) + (sign ? 1 : 0);
using iterator = reserve_iterator<OutputIt>;
Expand Down

0 comments on commit 3e28dc0

Please sign in to comment.