diff options
author | Jeffrey Walton <noloader@gmail.com> | 2018-12-03 04:18:41 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2018-12-03 04:18:41 -0500 |
commit | 318d53f6f999a1c678aa07d7fe0ae7720da9be1d (patch) | |
tree | d9a4969a50c3881dfb7c654edc785ba253b3d9c6 /rijndael.cpp | |
parent | 774454ba7c9da45759ff40e584f5aed9ba3fcb9a (diff) | |
download | cryptopp-git-318d53f6f999a1c678aa07d7fe0ae7720da9be1d.tar.gz |
Avoid use of NDEBUG in source files
Posix NDEBUG causes our test script to fail the Posix Assert test
Diffstat (limited to 'rijndael.cpp')
-rw-r--r-- | rijndael.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/rijndael.cpp b/rijndael.cpp index b314733a..4793672a 100644 --- a/rijndael.cpp +++ b/rijndael.cpp @@ -91,9 +91,11 @@ being unloaded from L1 cache, until that round is finished. // VS2017 and global optimization bug. TODO, figure out when
// we can re-enable full optimizations for VS2017. Also see
// https://github.com/weidai11/cryptopp/issues/649
-#if (_MSC_VER >= 1910) && defined(NDEBUG)
-# pragma optimize("", off)
-# pragma optimize("ts", on)
+#if (_MSC_VER >= 1910)
+# ifndef CRYPTOPP_DEBUG
+# pragma optimize("", off)
+# pragma optimize("ts", on)
+# endif
#endif
NAMESPACE_BEGIN(CryptoPP)
|