Skip to content

Commit 1c1ee58

Browse files
Add a memory sanitizer suppression macro.
1 parent 7f0e82d commit 1c1ee58

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/qt_macros.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@
2323
#define QTHREAD_MSAN
2424
#endif
2525
#endif
26+
#ifdef QTHREAD_MSAN
27+
#define QTHREAD_SUPPRESS_MSAN __attribute__((no_sanitize("memory")))
28+
#else
29+
#define QTHREAD_SUPPRESS_MSAN
30+
#endif
2631

2732
#define TLS_DECL(type, name) thread_local type name
2833
#define TLS_DECL_INIT(type, name) thread_local type name = 0

0 commit comments

Comments
 (0)