On Thu, Oct 22, 2015 at 12:54:00PM +0200, Marcus Rueckert wrote: > On 2015-10-22 13:38:45 +0300, Dmitry Sivachenko wrote: > > I see this warnings with gcc-4.2.1 (shipped with FreeBSD-9), but no > > warnings with clang 3.6.1. > > I see a lot of such warnings with gcc48, but it seems expected according to > > comments in Makefile: > > #### Compiler-specific flags that may be used to disable some negative over- > > # optimization or to silence some warnings. -fno-strict-aliasing is needed > > with > > # gcc >= 4.4. > > 4.3.4 on SLES 11 SP 4 > 4.8.3 on openSUSE 13.2 > 5.1.1 on openSUSE Tumbleweed > > https://build.opensuse.org/package/show/server:http/haproxy (succeeded > links on the right side)
OK thanks guys, I've merged the patch now. Regarding the warnings, they're indeed caused by the lack of -fno-strict-aliasing which was added for this reason. When using gcc, it emits the warning at different places (and not this one). When using clang, I don't see them at all. Regards, Willy