[poc] buildkernel + clang + -Werror

Alexander Best arundel at freebsd.org
Sun Nov 6 20:33:16 UTC 2011


On Sun Nov  6 11, Ed Schouten wrote:
> Hello Alexander!
> 
> Even though that I agree that Clang is sometimes a bit picky, we'd
> better spend the time fixing the actual bugs in the code. I am more than
> willing to commit patches that fix actual warnings/errors in code.

the problem is, something like

uint x;

if (x < 0) ...

clang will warn about this, yet it is 100% valid code so my vote would be to
make such an error into a warning.

the same with 

int x;

x = x;

i believe in both cases clang is too picky.

cheers.
alex

> 
> -- 
>  Ed Schouten <ed at 80386.nl>
>  WWW: http://80386.nl/




More information about the freebsd-toolchain mailing list