From cac977856ae0cecf566b58a3726411a69ec779b1 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Fri, 14 Dec 2018 04:14:44 -0500 Subject: [PATCH] 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. --- chacha_avx.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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)