summaryrefslogtreecommitdiffstats
path: root/sys/conf/kern.mk
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2011-12-23 00:23:37 +0000
committerdim <dim@FreeBSD.org>2011-12-23 00:23:37 +0000
commitfda90e472a50b9413aded38b580a7defabe7604b (patch)
tree5ea8771f254bd94fbca002fbc82ad797cb728d3c /sys/conf/kern.mk
parent9aa2906575a1888371cd60f7488dd7a9f8225cd8 (diff)
downloadFreeBSD-src-fda90e472a50b9413aded38b580a7defabe7604b.zip
FreeBSD-src-fda90e472a50b9413aded38b580a7defabe7604b.tar.gz
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
Diffstat (limited to 'sys/conf/kern.mk')
-rw-r--r--sys/conf/kern.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk
index c53d88e..91f089e 100644
--- a/sys/conf/kern.mk
+++ b/sys/conf/kern.mk
@@ -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
#
OpenPOWER on IntegriCloud