VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Crypto
diff options
context:
space:
mode:
authorkavsrf <kavsrf@gmail.com>2017-02-28 10:57:41 +0300
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2017-06-05 17:45:47 +0200
commit79aa488106f49ae2a6c7b6f6f4c1065b8f168691 (patch)
treee1e3915d36a03d94e349b2229d073de463b82635 /src/Crypto
parentcf5729d4e184831d8d1a9bb3a83db9b645f96c24 (diff)
downloadVeraCrypt-79aa488106f49ae2a6c7b6f6f4c1065b8f168691.tar.gz
VeraCrypt-79aa488106f49ae2a6c7b6f6f4c1065b8f168691.zip
cland static code analyzer fixes
Diffstat (limited to 'src/Crypto')
-rw-r--r--src/Crypto/config.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Crypto/config.h b/src/Crypto/config.h
index 03b1ecb4..396be932 100644
--- a/src/Crypto/config.h
+++ b/src/Crypto/config.h
@@ -11,7 +11,7 @@
// Clang pretends to be VC++, too.
// See http://github.com/weidai11/cryptopp/issues/147
-#if defined(_MSC_VER) && defined(__clang__)
+#if defined(_MSC_VER) && defined(__clang__) && !defined(_DCSPKG_ANALYZE)
# error: "Unsupported configuration"
#endif
@@ -21,10 +21,10 @@
// Apple and LLVM's Clang. Apple Clang version 7.0 roughly equals LLVM Clang version 3.7
-#if defined(__clang__ ) && !defined(__apple_build_version__)
+#if defined(__clang__ ) && !defined(__apple_build_version__) && !defined(_DCSPKG_ANALYZE)
#define CRYPTOPP_LLVM_CLANG_VERSION (__clang_major__ * 10000 + __clang_minor__ * 100 + __clang_patchlevel__)
#define CRYPTOPP_CLANG_INTEGRATED_ASSEMBLER 1
-#elif defined(__clang__ ) && defined(__apple_build_version__)
+#elif defined(__clang__ ) && defined(__apple_build_version__) && !defined(_DCSPKG_ANALYZE)
#define CRYPTOPP_APPLE_CLANG_VERSION (__clang_major__ * 10000 + __clang_minor__ * 100 + __clang_patchlevel__)
#define CRYPTOPP_CLANG_INTEGRATED_ASSEMBLER 1
#endif