fix build: Disable maybe-uninitialized warning in ccapi
This commit is contained in:
1 parent
3aec53cfbd
commit
714b846233
1 file changed
+3
@@ -4885,9 +4885,12 @@ std::basic_istream<CharT, Traits>& from_stream(std::basic_istream<CharT, Traits>
|
||||
{
|
||||
using dfs = detail::decimal_format_seconds<Duration>;
|
||||
CONSTDATA auto w = Duration::period::den == 1 ? 2 : 3 + dfs::width;
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
|
||||
long double S;
|
||||
read(is, rld{S, 1, width == -1 ? w : static_cast<unsigned>(width)});
|
||||
checked_set(s, round<Duration>(duration<long double>{S}), not_a_second, is);
|
||||
#pragma GCC diagnostic pop
|
||||
}
|
||||
#if !ONLY_C_LOCALE
|
||||
else if (modified == CharT{'O'}) {
|
||||
|
||||
Reference in new issue
Block a user