From 685d7855acb28f89aa948e0056d2807bf30d3971 Mon Sep 17 00:00:00 2001 From: Amy Kwan Date: Wed, 27 Mar 2024 14:19:00 -0500 Subject: Fix the -Wmissing-designated-field-initializers on the clang-ppc64le-rhel bot --- compiler-rt/lib/scudo/standalone/tests/strings_test.cpp | 2 +- compiler-rt/lib/scudo/standalone/tests/vector_test.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler-rt/lib/scudo/standalone/tests/strings_test.cpp b/compiler-rt/lib/scudo/standalone/tests/strings_test.cpp index 3e41f67..17a596d 100644 --- a/compiler-rt/lib/scudo/standalone/tests/strings_test.cpp +++ b/compiler-rt/lib/scudo/standalone/tests/strings_test.cpp @@ -136,7 +136,7 @@ TEST(ScudoStringsTest, CapacityIncreaseFails) { rlimit Limit = {}; EXPECT_EQ(0, getrlimit(RLIMIT_AS, &Limit)); - rlimit EmptyLimit = {.rlim_max = Limit.rlim_max}; + rlimit EmptyLimit = {.rlim_cur = 0, .rlim_max = Limit.rlim_max}; EXPECT_EQ(0, setrlimit(RLIMIT_AS, &EmptyLimit)); // Test requires that the default length is at least 6 characters. diff --git a/compiler-rt/lib/scudo/standalone/tests/vector_test.cpp b/compiler-rt/lib/scudo/standalone/tests/vector_test.cpp index b7678678..add62c5 100644 --- a/compiler-rt/lib/scudo/standalone/tests/vector_test.cpp +++ b/compiler-rt/lib/scudo/standalone/tests/vector_test.cpp @@ -55,7 +55,7 @@ TEST(ScudoVectorTest, ReallocateFails) { rlimit Limit = {}; EXPECT_EQ(0, getrlimit(RLIMIT_AS, &Limit)); - rlimit EmptyLimit = {.rlim_max = Limit.rlim_max}; + rlimit EmptyLimit = {.rlim_cur = 0, .rlim_max = Limit.rlim_max}; EXPECT_EQ(0, setrlimit(RLIMIT_AS, &EmptyLimit)); V.resize(capacity); -- cgit v1.1