summaryrefslogtreecommitdiff
path: root/chacha_avx.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-12-14 04:14:44 -0500
committerJeffrey Walton <noloader@gmail.com>2018-12-14 04:14:44 -0500
commitcac977856ae0cecf566b58a3726411a69ec779b1 (patch)
tree1e3f8c30290d161b48c7740504500a40a175ba1e /chacha_avx.cpp
parentd35124f304bd3e497e0f29abd30fe0cbda6bcd40 (diff)
downloadcryptopp-git-cac977856ae0cecf566b58a3726411a69ec779b1.tar.gz
Clear alginment warning with Clang
The data is aligned, but Clang issues warning based on type and not the actual alignment of the variable and data.
Diffstat (limited to 'chacha_avx.cpp')
-rw-r--r--chacha_avx.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/chacha_avx.cpp b/chacha_avx.cpp
index 67a8affa..20693488 100644
--- a/chacha_avx.cpp
+++ b/chacha_avx.cpp
@@ -49,6 +49,12 @@ extern const char CHACHA_AVX_FNAME[] = __FILE__;
# endif
#endif
+// The data is aligned, but Clang issues warning based on type
+// and not the actual alignment of the variable and data.
+#if CRYPTOPP_GCC_DIAGNOSTIC_AVAILABLE
+# pragma GCC diagnostic ignored "-Wcast-align"
+#endif
+
ANONYMOUS_NAMESPACE_BEGIN
#if (CRYPTOPP_AVX2_AVAILABLE)