When building the kernel with clang, it produces several warnings which

might be useful in some cases, but which are not severe enough to error
out the whole kernel build.  Display them anyway, so there is at least
some incentive to fix them eventually.

Start with -Wtautological-compare warnings.  These usually occur when
people check if unsigned quantities are negative, or similar cases.  To
clean these up would be painful, and might give problems if the base
type which is compared against changes to signed later on.

MFC after:	1 week
This commit is contained in:
Dimitry Andric 2011-12-23 00:23:37 +00:00
parent e66b36c6a7
commit 0ed78d642e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=228822

View File

@ -19,6 +19,10 @@ NO_WCONSTANT_CONVERSION= -Wno-constant-conversion
NO_WARRAY_BOUNDS= -Wno-array-bounds
NO_WSHIFT_COUNT_NEGATIVE= -Wno-shift-count-negative
NO_WSHIFT_COUNT_OVERFLOW= -Wno-shift-count-overflow
# Several other warnings which might be useful in some cases, but not severe
# enough to error out the whole kernel build. Display them anyway, so there is
# some incentive to fix them eventually.
CWARNFLAGS+= -Wno-error-tautological-compare
.endif
#