From 3e28dc021cf38b14ac0e2b1a046f783e094bfffc Mon Sep 17 00:00:00 2001 From: Ivan Shynkarenka Date: Fri, 13 May 2022 10:04:34 -0400 Subject: [PATCH 1/2] 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 --- 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 80074f12..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); - constexpr 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; From af5644c274ab268c151a0cdeacfc637917c73e51 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 15 May 2022 06:29:15 -0700 Subject: [PATCH 2/2] Update README.rst --- README.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.rst b/README.rst index feb4ab5e..d5f13a8e 100644 --- a/README.rst +++ b/README.rst @@ -33,6 +33,8 @@ help victims of the war in Ukraine: https://www.stopputin.net/. `Documentation `__ +`Cheat Sheets `__ + Q&A: ask questions on `StackOverflow with the tag fmt `_.