From d8e10d13d7e31cb1695eb65f02696e682ec97097 Mon Sep 17 00:00:00 2001 From: Thurston Dang Date: Fri, 20 Dec 2024 20:52:13 +0000 Subject: [PATCH] [rtsan] Fix-forward TEST(TestRtsanInterceptors, PpollDiesWhenRealtime) Buildbot breakage: home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/rtsan/tests/rtsan_test_interceptors_posix.cpp:1090:19: error: missing field 'tv_nsec' initializer [-Werror,-Wmissing-field-initializers] 1090 | timespec ts = {0}; introduced by https://github.com/llvm/llvm-project/pull/120366/files --- compiler-rt/lib/rtsan/tests/rtsan_test_interceptors_posix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/lib/rtsan/tests/rtsan_test_interceptors_posix.cpp b/compiler-rt/lib/rtsan/tests/rtsan_test_interceptors_posix.cpp index eb502e99bb1b5e..b052dd859dcdf6 100644 --- a/compiler-rt/lib/rtsan/tests/rtsan_test_interceptors_posix.cpp +++ b/compiler-rt/lib/rtsan/tests/rtsan_test_interceptors_posix.cpp @@ -1087,7 +1087,7 @@ TEST(TestRtsanInterceptors, PpollDiesWhenRealtime) { fds[0].fd = 0; fds[0].events = POLLIN; - timespec ts = {0}; + timespec ts = {0, 0}; auto Func = [&fds, &ts]() { ppoll(fds, 1, &ts, nullptr); };