From cfe1cac089c83cfd0f152b6f9c6abb21f1feb285 Mon Sep 17 00:00:00 2001 From: sawich Date: Tue, 12 Apr 2022 18:58:19 +0300 Subject: [PATCH] Fix warning C4189 --- include/spdlog/fmt/bundled/format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index ee69651c..825dfe8c 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1809,7 +1809,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'); + FMT_MAYBE_UNUSED constexpr Char zero = static_cast('0'); auto sign = fspecs.sign; size_t size = to_unsigned(significand_size) + (sign ? 1 : 0); using iterator = reserve_iterator;