aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2022-07-24 18:12:25 +0200
committerGitHub <noreply@github.com>2022-07-24 18:12:25 +0200
commit86a3e4c8c331773156283d365aa6a9b103ca44ff (patch)
tree2465fac386ae7ea40110544b8f4a1b9f427d4e12 /src
parente6b332aa4a1399e33df68998cf8351bccaee3fc4 (diff)
Add support for Memory sanitizer (#1652)
Diffstat (limited to 'src')
-rw-r--r--src/lib/third_party/src/gcrypt/aesni.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/third_party/src/gcrypt/aesni.c b/src/lib/third_party/src/gcrypt/aesni.c
index f20b0051c..db5c92eb6 100644
--- a/src/lib/third_party/src/gcrypt/aesni.c
+++ b/src/lib/third_party/src/gcrypt/aesni.c
@@ -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