]> git.ipfire.org Git - thirdparty/hostap.git/commit
Work around some gcc 4.4 strict-aliasing warnings
authorJouni Malinen <j@w1.fi>
Wed, 4 Nov 2009 17:49:14 +0000 (19:49 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 4 Nov 2009 17:49:14 +0000 (19:49 +0200)
commit0ae7b0869107d4ae1b28bc417cfe4c5b0fc9e0ed
tree74cf20ec1500394ccebc957758f8e83986f3633e
parenteb999fefcbf919110b53681f8942dab4f0320f39
Work around some gcc 4.4 strict-aliasing warnings

gcc 4.4 ends up generating strict-aliasing warnings about some very common
networking socket uses that do not really result in a real problem and
cannot be easily avoided with union-based type-punning due to struct
definitions including another struct in system header files. To avoid having
to fully disable strict-aliasing warnings, provide a mechanism to hide the
typecast from aliasing for now. A cleaner solution will hopefully be found
in the future to handle these cases.
src/drivers/driver_nl80211.c
src/drivers/driver_wext.c
src/l2_packet/l2_packet_linux.c
src/utils/common.c
src/utils/common.h
src/wps/wps_upnp_ssdp.c