tsan: test: Initialize all fields of Params struct

Some compilers started complaining about the test:

	tsan_trace_test.cpp:128:21: error: missing field 'type' initializer

Fix it by initializing all 5 fields, even though the type field will be
reset in the for loop.

Differential Revision: https://reviews.llvm.org/D108207
This commit is contained in:
Marco Elver 2021-08-17 16:54:07 +02:00
parent 5c6f748cbc
commit d2b574a4de
1 changed files with 4 additions and 4 deletions

View File

@ -125,10 +125,10 @@ TEST(Trace, MemoryAccessSize) {
}
};
Thread::Params tests[] = {
{1, 0, 1, true}, {4, 0, 2, true},
{4, 2, 2, true}, {8, 3, 1, true},
{2, 1, 1, true}, {1, 1, 1, false},
{8, 5, 4, false}, {4, static_cast<uptr>(-1l), 4, false},
{1, 0, 1, true, 0}, {4, 0, 2, true, 0},
{4, 2, 2, true, 0}, {8, 3, 1, true, 0},
{2, 1, 1, true, 0}, {1, 1, 1, false, 0},
{8, 5, 4, false, 0}, {4, static_cast<uptr>(-1l), 4, false, 0},
};
for (auto params : tests) {
for (params.type = 0; params.type < 3; params.type++)