mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 14:59:39 +02:00
libstdc++: Fix -Wmaybe-uninitialized warning in another test
Like r16-4120-ge1b9ccaa10df01 this is a false positive, but we can just initialize the variable. libstdc++-v3/ChangeLog: * testsuite/std/time/parse/parse.cc: Initialize variable.
This commit is contained in:
committed by
Jonathan Wakely
parent
5dce50b6a2
commit
20bf909f18
@@ -309,7 +309,7 @@ test_modifiers()
|
||||
is >> parse("%5M", min);
|
||||
VERIFY( is.eof() && is.fail() );
|
||||
|
||||
std::chrono::seconds s;
|
||||
std::chrono::seconds s{};
|
||||
is.clear();
|
||||
is.str("000000000012345");
|
||||
is >> parse("%12S", s); // Read more than 10 digits to check overflow logic.
|
||||
|
||||
Reference in New Issue
Block a user