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.
pull/765/head
Jeffrey Walton 2018-12-14 04:14:44 -05:00
parent d35124f304
commit cac977856a
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 6 additions and 0 deletions

View File

@ -49,6 +49,12 @@ extern const char CHACHA_AVX_FNAME[] = __FILE__;
# endif # endif
#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 ANONYMOUS_NAMESPACE_BEGIN
#if (CRYPTOPP_AVX2_AVAILABLE) #if (CRYPTOPP_AVX2_AVAILABLE)