]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[BUILD] add -fno-strict-aliasing to fix warnings with gcc >= 4.4
authorWilly Tarreau <w@1wt.eu>
Sun, 28 Nov 2010 07:28:15 +0000 (08:28 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 28 Nov 2010 07:57:53 +0000 (08:57 +0100)
commit3c9a3fb0b8edafa5ee95f617ce28cf1d1885e5ac
treee494b64e7b3af11a971e8c4a36fa0aa923754dd6
parenta5899aaad5328f692bd642c40a4069434858de9d
[BUILD] add -fno-strict-aliasing to fix warnings with gcc >= 4.4

Gcc 4.4 enables strict aliasing by default, resuling in complaints
when casting struct sockaddr_storage to sockaddr_in. Not only doing
this does not provide any noticeable performance improvement, it also
presents a risk of strange bugs even when the compiler does not emit
a warning, so let's disable this optimization !
Makefile
Makefile.bsd
Makefile.osx