summaryrefslogtreecommitdiffstats
path: root/sys/conf/kern.mk
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2012-02-21 20:55:43 +0000
committerdim <dim@FreeBSD.org>2012-02-21 20:55:43 +0000
commit97a585876e728f80f43ab389448699d290cfa8c3 (patch)
tree2367406e9a3bcc4b6dadcfcb2afc2238657fa63b /sys/conf/kern.mk
parent05b0baa9d7dec6b685d001a414527a5ed422f70a (diff)
downloadFreeBSD-src-97a585876e728f80f43ab389448699d290cfa8c3.zip
FreeBSD-src-97a585876e728f80f43ab389448699d290cfa8c3.tar.gz
When building with clang, disable -Wunneeded-internal-declaration for
several sys/cam/ctl files, since these get the following warnings: In file included from sys/cam/ctl/ctl_backend.c:60: sys/cam/ctl/ctl_private.h:300:30: error: variable 'page_index_template' is not needed and will not be emitted [-Werror,-Wunneeded-internal-declaration] static struct ctl_page_index page_index_template[] = { ^ These warnings are tricky to fix without a lot of overhaul, and they are harmless, so disable them for now. MFC after: 1 week
Diffstat (limited to 'sys/conf/kern.mk')
-rw-r--r--sys/conf/kern.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk
index d561aae..5ca83ac 100644
--- a/sys/conf/kern.mk
+++ b/sys/conf/kern.mk
@@ -22,6 +22,7 @@ NO_WSHIFT_COUNT_NEGATIVE= -Wno-shift-count-negative
NO_WSHIFT_COUNT_OVERFLOW= -Wno-shift-count-overflow
NO_WUNUSED_VALUE= -Wno-unused-value
NO_WSELF_ASSIGN= -Wno-self-assign
+NO_WUNNEEDED_INTERNAL_DECL= -Wno-unneeded-internal-declaration
# 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.
OpenPOWER on IntegriCloud