]> git.ipfire.org Git - thirdparty/hostap.git/commit
Use type-punning to avoid breaking strict aliasing rules
authorJouni Malinen <jouni.malinen@atheros.com>
Thu, 5 Nov 2009 10:11:49 +0000 (12:11 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 5 Nov 2009 10:11:49 +0000 (12:11 +0200)
commit5a641ae01e9d9040cf838b6c40dbda1b8c724aba
treeae1599f179c95c8f8e26a1d0a94e314db0ab0fbf
parentd27df100b587dd95f3256a8baf9db0c5d4380089
Use type-punning to avoid breaking strict aliasing rules

While the actual use here would be unlikely to be broken by any C
optimization, it is better to use explicit union construction to let
gcc know about the aliasing and avoid warnings from gcc 4.4.
src/radius/radius_server.c