On Mon, Nov 20, 2017 at 06:18:43AM +0100, Willy Tarreau wrote:
> > Not sure if it still matters but for the record my cc -v output:
> > root@:/usr/ports/net/haproxy-devel # cc -v
> > FreeBSD clang version 4.0.0 (tags/RELEASE_400/final 297347) (based on LLVM
> > 4.0.0)
> > Target: x86_64-unknown-freebsd11.1
> > Thread model: posix
> > InstalledDir: /usr/bin
> 
> Thanks. I can reproduce the same issue with clang 3.8 so I'll be able to
> find a working solution.

So I managed to get rid of these errors by helping the compiler spot
that the expression was not used. I also took this opportunity to clean
up a number of other warnings you might have noticed when using Clang.
For me it's warning-free with clang-3.8, gcc-4.7.4 and gcc-6.3.1 now.

Willy

Reply via email to