[compiler-rt] 70818f4 - tsan-rt: silence a -Wunused-const-variable
Jon Roelofs via llvm-commits
llvm-commits at lists.llvm.org
Tue May 16 07:38:00 PDT 2023
Author: Jon Roelofs
Date: 2023-05-16T07:25:21-07:00
New Revision: 70818f442d751415fbd8d35e23f7772d3efeb881
URL: https://github.com/llvm/llvm-project/commit/70818f442d751415fbd8d35e23f7772d3efeb881
DIFF: https://github.com/llvm/llvm-project/commit/70818f442d751415fbd8d35e23f7772d3efeb881.diff
LOG: tsan-rt: silence a -Wunused-const-variable
Added:
Modified:
compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp b/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp
index 6ac6ac6a7fb4c..1307314465a81 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;
More information about the llvm-commits
mailing list