mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-24 22:03:07 +00:00
Add clang static analyzer suppression macro.
This commit is contained in:
committed by
David Goldblatt
parent
5afff2e44e
commit
86f4851f5d
@@ -116,6 +116,18 @@
|
|||||||
# define JEMALLOC_DIAGNOSTIC_DISABLE_SPURIOUS
|
# define JEMALLOC_DIAGNOSTIC_DISABLE_SPURIOUS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __clang_analyzer__
|
||||||
|
# define JEMALLOC_CLANG_ANALYZER
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef JEMALLOC_CLANG_ANALYZER
|
||||||
|
# define JEMALLOC_CLANG_ANALYZER_SUPPRESS __attribute__((suppress))
|
||||||
|
# define JEMALLOC_CLANG_ANALYZER_SILENCE_INIT(v) = v
|
||||||
|
#else
|
||||||
|
# define JEMALLOC_CLANG_ANALYZER_SUPPRESS
|
||||||
|
# define JEMALLOC_CLANG_ANALYZER_SILENCE_INIT(v)
|
||||||
|
#endif
|
||||||
|
|
||||||
#define JEMALLOC_SUPPRESS_WARN_ON_USAGE(...) \
|
#define JEMALLOC_SUPPRESS_WARN_ON_USAGE(...) \
|
||||||
JEMALLOC_DIAGNOSTIC_PUSH \
|
JEMALLOC_DIAGNOSTIC_PUSH \
|
||||||
JEMALLOC_DIAGNOSTIC_IGNORE_DEPRECATED \
|
JEMALLOC_DIAGNOSTIC_IGNORE_DEPRECATED \
|
||||||
|
|||||||
Reference in New Issue
Block a user