scrypt: fix compiler warnings on ARM
authorJussi Kivilinna <jussi.kivilinna@iki.fi>
Tue, 23 Dec 2014 11:31:58 +0000 (13:31 +0200)
committerJussi Kivilinna <jussi.kivilinna@iki.fi>
Thu, 25 Dec 2014 09:16:49 +0000 (11:16 +0200)
commit1dab4c9422bf0f3cdc7a4d3ccf9db090abd90e94
tree13dd685e23952d44dbe327ebc9fe4cd3287eb2aa
parent99faf9cb34f872144313403f29f3379798debfc9
scrypt: fix compiler warnings on ARM

* cipher/scrypt.c (_scryptBlockMix): Cast X to 'u32 *' through 'void *'.
--

Patch fixes 'cast increases required alignment' warnings seen on GCC:

scrypt.c: In function '_scryptBlockMix':
scrypt.c:145:22: warning: cast increases required alignment of target type [-Wcast-align]
       _salsa20_core ((u32*)X, (u32*)X, 8);
                      ^
scrypt.c:145:31: warning: cast increases required alignment of target type [-Wcast-align]
       _salsa20_core ((u32*)X, (u32*)X, 8);
                               ^

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
cipher/scrypt.c