diff options
author | Yves Orton <demerphq@gmail.com> | 2017-09-13 13:34:17 +0200 |
---|---|---|
committer | Yves Orton <demerphq@gmail.com> | 2017-09-13 13:34:17 +0200 |
commit | 20e4c2ede583268f69be4957f1f94953e911c5bf (patch) | |
tree | a97e5af551e7b764e2a6f8f5253980b0128ec11f /zaphod32_hash.h | |
parent | 45908e4d120d33a558a8b052036c56cd0c90b898 (diff) | |
download | perl-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 'zaphod32_hash.h')
-rw-r--r-- | zaphod32_hash.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zaphod32_hash.h b/zaphod32_hash.h index ec091f723c..842b2473f9 100644 --- a/zaphod32_hash.h +++ b/zaphod32_hash.h @@ -134,7 +134,7 @@ void zaphod32_seed_state ( const U8 *seed_ch, U8 *state_ch ) { - U32 *seed= (U32 *)seed_ch; + const U32 *seed= (const U32 *)seed_ch; U32 *state= (U32 *)state_ch; /* hex expansion of pi, skipping first two digits. pi= 3.2[43f6...]*/ |