Add support for Memory sanitizer (#1652)

This commit is contained in:
Ivan Nardi
2022-07-24 18:12:25 +02:00
committed by GitHub
parent e6b332aa4a
commit 86a3e4c8c3
3 changed files with 28 additions and 5 deletions
+4 -1
View File
@@ -25,7 +25,10 @@
#if defined(__has_feature)
#if __has_feature(memory_sanitizer)
#warning "MBEDTLS_AESNI_C is known to cause spurious error reports with some memory sanitizers as they do not understand the assembly code."
/* Using "#pragma message" instead of "#warning" to allow compilation with -Werror.
This pragma directive should be supported from every compilers supporting also memory sanitizer
*/
#pragma message "MBEDTLS_AESNI_C is known to cause spurious error reports with some memory sanitizers as they do not understand the assembly code."
#endif
#endif