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] --- stadtx_hash.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stadtx_hash.h') diff --git a/stadtx_hash.h b/stadtx_hash.h index 3a5d81e7cb..30278e3b53 100644 --- a/stadtx_hash.h +++ b/stadtx_hash.h @@ -118,7 +118,7 @@ STADTX_STATIC_INLINE void stadtx_seed_state ( const U8 *seed_ch, U8 *state_ch ) { - U64 *seed= (U64 *)seed_ch; + const U64 *seed= (const U64 *)seed_ch; U64 *state= (U64 *)state_ch; /* first we apply two masks to each word of the seed, this means that * a) at least one of state[0] and state[2] is nonzero, -- cgit v1.2.1