eina: Avoid increasing required alignment of target type warning on ARM in Eina_Hash. 30/12030/1 tizen
authorRyuan Choi <ryuan.choi@samsung.com>
Mon, 11 Nov 2013 14:00:49 +0000 (23:00 +0900)
committerRyuan Choi <ryuan.choi@gmail.com>
Mon, 11 Nov 2013 14:06:21 +0000 (23:06 +0900)
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: I17bdbf560f58b3fcd01b7c82fcb22122401d0df4
Signed-off-by: Ryuan Choi <ryuan.choi@samsung.com>
src/include/eina_inline_hash.x

index b2fc3f3..29264b1 100644 (file)
@@ -111,7 +111,7 @@ eina_hash_murmur3(const char *key, int len)
    unsigned int h1 = 0, k1;
    unsigned int c1 = 0xcc9e2d51 ^ eina_seed;
    unsigned int c2 = 0x1b873593 ^ eina_seed;
-   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;