Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

Commit f2cfa77

Browse files
committed
Merge pull request #1 from knightstuff/stable
Fixed a compiler warning about undefined #define
2 parents a897309 + 8d0e85f commit f2cfa77

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/tsan/rtl/tsan_defs.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@
2929
#endif
3030

3131
#ifndef TSAN_CONTAINS_UBSAN
32-
# define TSAN_CONTAINS_UBSAN (CAN_SANITIZE_UB && !defined(SANITIZER_GO))
32+
# if CAN_SANITIZE_UB && !defined(SANITIZER_GO)
33+
# define TSAN_CONTAINS_UBSAN 1
34+
# else
35+
# define TSAN_CONTAINS_UBSAN 0
36+
# endif
3337
#endif
3438

3539
namespace __tsan {

0 commit comments

Comments
 (0)