Re: [PATCH 2/5] kbuild: LLVMLinux: Adapt warnings for compilation with clang

2014-02-25 Thread Behan Webster
On 02/25/14 17:17, Dave Jones wrote: On Tue, Feb 25, 2014 at 05:08:40PM -0800, beh...@converseincode.com wrote: > When compiling kernel with clang, disable warnings which are too noisy, and > add the clang flag catch-undefined-behavior. > > +# Clang > +warning-1 += $(call cc-disable

Re: [PATCH 2/5] kbuild: LLVMLinux: Adapt warnings for compilation with clang

2014-02-25 Thread H. Peter Anvin
On 02/25/2014 05:31 PM, Behan Webster wrote: > > This are primarily off due to the amount of noise these warnings produce > at this time (clang produces a LOT of warnings straight out of the box). > I'd love to eventually turn some of these back on again. > It would also be nice if someone would

Re: [PATCH 2/5] kbuild: LLVMLinux: Adapt warnings for compilation with clang

2014-02-25 Thread Behan Webster
On 02/25/14 17:17, Dave Jones wrote: On Tue, Feb 25, 2014 at 05:08:40PM -0800, beh...@converseincode.com wrote: > +warning-1 += $(call cc-disable-warning, self-assign) Do you have a pointer to an example log-file from before this change ? I'm curious for eg, which self-assign warnings are show

Re: [PATCH 2/5] kbuild: LLVMLinux: Adapt warnings for compilation with clang

2014-02-25 Thread Dave Jones
On Tue, Feb 25, 2014 at 05:08:40PM -0800, beh...@converseincode.com wrote: > When compiling kernel with clang, disable warnings which are too noisy, and > add the clang flag catch-undefined-behavior. > > +# Clang > +warning-1 += $(call cc-disable-warning, initializer-overrides) > +warning