Add method for sanitizer suppression
parent
0c4b80c995
commit
f40c55810d
15
config.h
15
config.h
|
|
@ -764,14 +764,23 @@ NAMESPACE_END
|
||||||
|
|
||||||
// ************** Deprecated ***************
|
// ************** Deprecated ***************
|
||||||
|
|
||||||
#if (CRYPTOPP_GCC_VERSION >= 40500) || (CRYPTOPP_LLVM_CLANG_VERSION >= 20800)
|
#if (CRYPTOPP_GCC_VERSION >= 40500) || (CRYPTOPP_LLVM_CLANG_VERSION >= 20800) || (CRYPTOPP_APPLE_CLANG_VERSION >= 40200)
|
||||||
# define CRYPTOPP_DEPRECATED(msg) __attribute__((deprecated (msg)));
|
# define CRYPTOPP_DEPRECATED(msg) __attribute__((deprecated (msg)))
|
||||||
#elif (CRYPTOPP_GCC_VERSION)
|
#elif (CRYPTOPP_GCC_VERSION)
|
||||||
# define CRYPTOPP_DEPRECATED(msg) __attribute__((deprecated));
|
# define CRYPTOPP_DEPRECATED(msg) __attribute__((deprecated))
|
||||||
#else
|
#else
|
||||||
# define CRYPTOPP_DEPRECATED(msg)
|
# define CRYPTOPP_DEPRECATED(msg)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// ************** Instrumentation ***************
|
||||||
|
|
||||||
|
// GCC does not support; see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78204
|
||||||
|
#if (CRYPTOPP_LLVM_CLANG_VERSION >= 30700) || (CRYPTOPP_APPLE_CLANG_VERSION >= 70000)
|
||||||
|
# define CRYPTOPP_NO_SANITIZE(x) __attribute__((no_sanitize(x)))
|
||||||
|
#else
|
||||||
|
# define CRYPTOPP_NO_SANITIZE(x)
|
||||||
|
#endif
|
||||||
|
|
||||||
// ***************** C++11 related ********************
|
// ***************** C++11 related ********************
|
||||||
|
|
||||||
// Visual Studio began at VS2010, http://msdn.microsoft.com/en-us/library/hh567368%28v=vs.110%29.aspx.
|
// Visual Studio began at VS2010, http://msdn.microsoft.com/en-us/library/hh567368%28v=vs.110%29.aspx.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue