diff options
author | Jon Roelofs <jonathan_roelofs@apple.com> | 2023-05-16 07:25:21 -0700 |
---|---|---|
committer | Jon Roelofs <jonathan_roelofs@apple.com> | 2023-05-16 07:25:21 -0700 |
commit | 70818f442d751415fbd8d35e23f7772d3efeb881 (patch) | |
tree | 85e1d1dadf42c356c49741ae158f463c2dca1c1d /compiler-rt | |
parent | cd4ffbe0ff1f03639ddb8e1c7addcdd52503c61d (diff) | |
download | llvm-70818f442d751415fbd8d35e23f7772d3efeb881.tar.gz |
tsan-rt: silence a -Wunused-const-variable
Diffstat (limited to 'compiler-rt')
-rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp b/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp index 6ac6ac6a7fb4..1307314465a8 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp +++ b/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp @@ -128,7 +128,9 @@ const int SIGSYS = 12; const int SIGBUS = 7; const int SIGSYS = 31; #endif +#if SANITIZER_HAS_SIGINFO const int SI_TIMER = -2; +#endif void *const MAP_FAILED = (void*)-1; #if SANITIZER_NETBSD const int PTHREAD_BARRIER_SERIAL_THREAD = 1234567; |