From 858bcc1f18048855a238c68d5e4165f918fda67d Mon Sep 17 00:00:00 2001 From: Ivan Shynkarenka Date: Fri, 13 May 2022 17:52:58 +0400 Subject: [PATCH] VS2022 17.2: C4189: 'zero': local variable is initialized but not referenced #2891 #2892 --- include/fmt/format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index 25557a67..fe74db64 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -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); - Char zero = static_cast('0'); + const Char zero = static_cast('0'); auto sign = fspecs.sign; size_t size = to_unsigned(significand_size) + (sign ? 1 : 0); using iterator = reserve_iterator;