summaryrefslogtreecommitdiff
path: root/iterhash.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-01-20 19:39:49 -0500
committerJeffrey Walton <noloader@gmail.com>2018-01-20 19:39:49 -0500
commit565bd844fcc0dec4712f8c4c3e74e056f4a9ed78 (patch)
tree9ab43180511b53005490cea580954d9630830f40 /iterhash.h
parent2816efe188d5f335c4713ab68145d1b9df59452e (diff)
downloadcryptopp-git-565bd844fcc0dec4712f8c4c3e74e056f4a9ed78.tar.gz
Clear GCC -Wcast-align warnings on ARM
The buffers and workspaces are aligned
Diffstat (limited to 'iterhash.h')
-rw-r--r--iterhash.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/iterhash.h b/iterhash.h
index d66998b2..dae50d43 100644
--- a/iterhash.h
+++ b/iterhash.h
@@ -16,6 +16,10 @@
# endif
#endif
+// GCC cast warning
+#define HashWordPtr(x) ((HashWordType*)(void*)(x))
+#define ConstHashWordPtr(x) ((const HashWordType*)(const void*)(x))
+
NAMESPACE_BEGIN(CryptoPP)
/// \brief Exception thrown when trying to hash more data than is allowed by a hash function