diff --git a/tests/auto/corelib/tools/collections/tst_collections.cpp b/tests/auto/corelib/tools/collections/tst_collections.cpp index f10ecca335..85c6f7e6e1 100644 --- a/tests/auto/corelib/tools/collections/tst_collections.cpp +++ b/tests/auto/corelib/tools/collections/tst_collections.cpp @@ -2361,7 +2361,7 @@ template void testLinkedListLikeStlIterators() { Container fake; - typename Container::value_type t; + typename Container::value_type t = {}; fake << t; typename Container::iterator i1 = fake.begin(), i2 = i1 + 1; @@ -2394,7 +2394,7 @@ void testListLikeStlIterators() testLinkedListLikeStlIterators(); Container fake; - typename Container::value_type t; + typename Container::value_type t = {}; fake << t; typename Container::iterator i1 = fake.begin(), i2 = i1 + 1;