From a5c5a344bd9bd02dd7b82720414d73bd5a4ecbef Mon Sep 17 00:00:00 2001 From: Ryuan Choi Date: Mon, 11 Nov 2013 23:10:36 +0900 Subject: [PATCH] eina: Avoid increasing required alignment of target type warning on ARM in Eina_Hash. Cherry-picked from EFL 1.8 Summary: When building applications with -Wcast-align on ARM, there are following warnings. increases required alignment of target type warnings. This impact eina_hash_murmur3. Reviewed By: cedric Differential Revision: https://phab.enlightenment.org/D31 Change-Id: I3aa7fa062fb48b8451ab3c223251102acc3abfb6 Signed-off-by: Ryuan Choi --- src/include/eina_inline_hash.x | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/eina_inline_hash.x b/src/include/eina_inline_hash.x index be20e8f..fbc855e 100644 --- a/src/include/eina_inline_hash.x +++ b/src/include/eina_inline_hash.x @@ -109,7 +109,7 @@ eina_hash_murmur3(const char *key, int len) unsigned int h1 = 0, k1; unsigned int c1 = 0xcc9e2d51; unsigned int c2 = 0x1b873593; - const unsigned int * blocks = (const unsigned int *)(data + nblocks*4); + const unsigned int * blocks = (const unsigned int *)(void*)(data + nblocks*4); int i; const unsigned char *tail; -- 2.7.4