From ca32f123c2cdafd56a8fe8df1ef8e5bfada904dd Mon Sep 17 00:00:00 2001 From: Matt Borland Date: Mon, 27 Mar 2023 17:08:32 +0200 Subject: [PATCH] Fix -Werror-maybe-uninitialized --- include/boost/charconv/detail/floff.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/charconv/detail/floff.hpp b/include/boost/charconv/detail/floff.hpp index efa2bd8..7c9a161 100644 --- a/include/boost/charconv/detail/floff.hpp +++ b/include/boost/charconv/detail/floff.hpp @@ -2355,7 +2355,7 @@ namespace jkj { namespace floff { constexpr int kappa = 2; int k = kappa - detail::log::floor_log10_pow2(e); - std::uint32_t current_digits; + std::uint32_t current_digits {}; char* const buffer_starting_pos = buffer; int decimal_exponent = -k; int remaining_digits = precision + 1; @@ -3125,7 +3125,7 @@ namespace jkj { namespace floff { 100000000 * second_subsegment; // Print the first subsegment (1 ~ 6 digits). - std::uint64_t prod; + std::uint64_t prod {}; auto remaining_digits_in_the_current_subsegment = digits_in_the_second_segment - 16; switch (remaining_digits_in_the_current_subsegment) {