Home GnuPG

scrypt: fix compiler warnings on ARM
1dab4c9422bfUnpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

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>

Details

Provenance
jukiviliAuthored on Dec 23 2014, 12:31 PM
Parents
rC99faf9cb34f8: secmem: fix compiler warnings on ARM
Branches
Unknown
Tags
Unknown

Event Timeline

Jussi Kivilinna <jussi.kivilinna@iki.fi> committed rC1dab4c9422bf: scrypt: fix compiler warnings on ARM (authored by Jussi Kivilinna <jussi.kivilinna@iki.fi>).Dec 25 2014, 10:16 AM