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:
Jonathan Wakely
2025-10-01 13:51:55 +01:00
committed by Jonathan Wakely
parent 5dce50b6a2
commit 20bf909f18

View File

@@ -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.