Skip to content

Commit 685d785

Browse files
committed
Fix the -Wmissing-designated-field-initializers on the clang-ppc64le-rhel bot
1 parent 4a5056b commit 685d785

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler-rt/lib/scudo/standalone/tests/strings_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ TEST(ScudoStringsTest, CapacityIncreaseFails) {
136136

137137
rlimit Limit = {};
138138
EXPECT_EQ(0, getrlimit(RLIMIT_AS, &Limit));
139-
rlimit EmptyLimit = {.rlim_max = Limit.rlim_max};
139+
rlimit EmptyLimit = {.rlim_cur = 0, .rlim_max = Limit.rlim_max};
140140
EXPECT_EQ(0, setrlimit(RLIMIT_AS, &EmptyLimit));
141141

142142
// Test requires that the default length is at least 6 characters.

compiler-rt/lib/scudo/standalone/tests/vector_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ TEST(ScudoVectorTest, ReallocateFails) {
5555
rlimit Limit = {};
5656
EXPECT_EQ(0, getrlimit(RLIMIT_AS, &Limit));
5757

58-
rlimit EmptyLimit = {.rlim_max = Limit.rlim_max};
58+
rlimit EmptyLimit = {.rlim_cur = 0, .rlim_max = Limit.rlim_max};
5959
EXPECT_EQ(0, setrlimit(RLIMIT_AS, &EmptyLimit));
6060

6161
V.resize(capacity);

0 commit comments

Comments
 (0)