mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-27 03:21:34 +00:00
VS2022 17.2: C4189: 'zero': local variable is initialized but not referenced #2891 Co-authored-by: Ivan Shynkarenka <Ivan_Shynkarenka@epam.com>
This commit is contained in:
parent
f6f920a1a8
commit
3e28dc021c
@ -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>;
|
||||
|
Loading…
Reference in New Issue
Block a user