Skip to content

Commit 870caf7

Browse files
committed
Amended - added pragma disable of unguarded warning check
1 parent f96f53f commit 870caf7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compiler-rt/lib/rtsan/rtsan_interceptors_posix.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,10 +464,13 @@ INTERCEPTOR(void *, valloc, SIZE_T size) {
464464
}
465465

466466
#if SANITIZER_INTERCEPT_ALIGNED_ALLOC
467+
#pragma clang diagnostic push
468+
#pragma clang diagnostic ignored "-Wunguarded-availability-new"
467469
INTERCEPTOR(void *, aligned_alloc, SIZE_T alignment, SIZE_T size) {
468470
__rtsan_notify_intercepted_call("aligned_alloc");
469471
return REAL(aligned_alloc)(alignment, size);
470472
}
473+
#pragma clang diagnostic pop
471474
#define RTSAN_MAYBE_INTERCEPT_ALIGNED_ALLOC INTERCEPT_FUNCTION(aligned_alloc)
472475
#else
473476
#define RTSAN_MAYBE_INTERCEPT_ALIGNED_ALLOC

0 commit comments

Comments
 (0)