summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2020-06-29 08:31:25 -0400
committerJeffrey Walton <noloader@gmail.com>2020-06-29 08:31:25 -0400
commita830b24e7afcee05dc90edebfc8eaae65c5c75cc (patch)
treebc1470f63f42e2261314cf68b805b024fe3e6dae
parent3bdcb5b8e07ccd9a1cd1cd5853091f25c1724718 (diff)
downloadcryptopp-git-a830b24e7afcee05dc90edebfc8eaae65c5c75cc.tar.gz
Silence GCC warnings in BLAKE2
-rw-r--r--blake2b_simd.cpp5
-rw-r--r--blake2s_simd.cpp5
2 files changed, 10 insertions, 0 deletions
diff --git a/blake2b_simd.cpp b/blake2b_simd.cpp
index b0772dea..2d042c00 100644
--- a/blake2b_simd.cpp
+++ b/blake2b_simd.cpp
@@ -58,6 +58,11 @@
# include "ppc_simd.h"
#endif
+#if defined(CRYPTOPP_GCC_DIAGNOSTIC_AVAILABLE)
+/* Ignore "warning: vec_lvsl is deprecated..." */
+# pragma GCC diagnostic ignored "-Wdeprecated"
+#endif
+
// Squash MS LNK4221 and libtool warnings
extern const char BLAKE2B_SIMD_FNAME[] = __FILE__;
diff --git a/blake2s_simd.cpp b/blake2s_simd.cpp
index e7c80912..f0caed48 100644
--- a/blake2s_simd.cpp
+++ b/blake2s_simd.cpp
@@ -68,6 +68,11 @@
# include "ppc_simd.h"
#endif
+#if defined(CRYPTOPP_GCC_DIAGNOSTIC_AVAILABLE)
+/* Ignore "warning: vec_lvsl is deprecated..." */
+# pragma GCC diagnostic ignored "-Wdeprecated"
+#endif
+
// Squash MS LNK4221 and libtool warnings
extern const char BLAKE2S_SIMD_FNAME[] = __FILE__;