mirror of
https://github.com/isc-projects/bind9.git
synced 2026-07-16 12:15:25 -04:00
Add conditional ISC_NO_SANITIZE macro to disable TSAN for function
This commit is contained in:
parent
3bce0c2c20
commit
255134166c
1 changed files with 6 additions and 0 deletions
|
|
@ -198,6 +198,12 @@
|
|||
#define __SANITIZE_THREAD__ 1
|
||||
#endif
|
||||
|
||||
#if __SANITIZE_THREAD__
|
||||
#define ISC_NO_SANITIZE __attribute__((no_sanitize("thread")))
|
||||
#else
|
||||
#define ISC_NO_SANITIZE
|
||||
#endif
|
||||
|
||||
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR >= 6)
|
||||
#define STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
|
||||
#elif __has_feature(c_static_assert)
|
||||
|
|
|
|||
Loading…
Reference in a new issue