VS2022 17.2: C4189: 'zero': local variable is initialized but not referenced #2891
This commit is contained in:
parent
f6f920a1a8
commit
2cf554b932
@ -2203,7 +2203,7 @@ FMT_CONSTEXPR20 auto do_write_float(OutputIt out, const DecimalFP& fp,
|
|||||||
-> OutputIt {
|
-> OutputIt {
|
||||||
auto significand = fp.significand;
|
auto significand = fp.significand;
|
||||||
int significand_size = get_significand_size(fp);
|
int significand_size = get_significand_size(fp);
|
||||||
constexpr Char zero = static_cast<Char>('0');
|
Char zero = static_cast<Char>('0');
|
||||||
auto sign = fspecs.sign;
|
auto sign = fspecs.sign;
|
||||||
size_t size = to_unsigned(significand_size) + (sign ? 1 : 0);
|
size_t size = to_unsigned(significand_size) + (sign ? 1 : 0);
|
||||||
using iterator = reserve_iterator<OutputIt>;
|
using iterator = reserve_iterator<OutputIt>;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user