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

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:
Ivan Shynkarenka 2022-05-13 10:04:34 -04:00 committed by GitHub
parent f6f920a1a8
commit 3e28dc021c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>;