Fix for strict aliasing rules.
authorWerner Koch <wk@gnupg.org>
Wed, 21 Nov 2012 11:58:36 +0000 (12:58 +0100)
committerWerner Koch <wk@gnupg.org>
Wed, 21 Nov 2012 11:58:36 +0000 (12:58 +0100)
commitdfb4673da8ee52d95e0a62c9f49ca8599943f22e
treecdfc7d6a5f01ae6ca13a8155d7a40d93c0d91c4d
parent3047795794eb238aa684bd0729acf64c82a19e09
Fix for strict aliasing rules.

* cipher/rijndael.c (do_setkey, prepare_decryption): Use u32_a_t for
casting.
--

gcc 4.7.1 now show warnings for more functions.  Like:

  rijndael.c:412:19: warning: dereferencing type-punned pointer will
  break strict-aliasing rules [-Wstrict-aliasing]

This fixes them using the may_alias attribute.
cipher/rijndael.c