summaryrefslogtreecommitdiff
path: root/sbox32_hash.h
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2017-09-13 13:34:17 +0200
committerYves Orton <demerphq@gmail.com>2017-09-13 13:34:17 +0200
commit20e4c2ede583268f69be4957f1f94953e911c5bf (patch)
treea97e5af551e7b764e2a6f8f5253980b0128ec11f /sbox32_hash.h
parent45908e4d120d33a558a8b052036c56cd0c90b898 (diff)
downloadperl-20e4c2ede583268f69be4957f1f94953e911c5bf.tar.gz
in hash init code preserve constness
This causes warnings in some our builds as can be seen in some smoke reports: zaphod32_hash.h:185:17: warning: cast discards '__attribute__((const))' qualifier from pointer target type [-Wcast-qual]
Diffstat (limited to 'sbox32_hash.h')
-rw-r--r--sbox32_hash.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbox32_hash.h b/sbox32_hash.h
index 9c98195899..748256c71c 100644
--- a/sbox32_hash.h
+++ b/sbox32_hash.h
@@ -1421,7 +1421,7 @@ SBOX32_STATIC_INLINE void sbox32_seed_state96 (
const U8 *seed_ch,
U8 *state_ch
) {
- U32 *seed= (U32 *)seed_ch;
+ const U32 *seed= (const U32 *)seed_ch;
U32 *state= (U32 *)state_ch;
U32 *state_cursor = state + 1;
U32 *sbox32_end = state + 1 + (256 * SBOX32_MAX_LEN);