From 20e4c2ede583268f69be4957f1f94953e911c5bf Mon Sep 17 00:00:00 2001 From: Yves Orton Date: Wed, 13 Sep 2017 13:34:17 +0200 Subject: 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] --- zaphod32_hash.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zaphod32_hash.h') 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...]*/ -- cgit v1.2.1