aboutsummaryrefslogtreecommitdiff
path: root/sys/conf/kern.mk
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2012-02-21 20:55:43 +0000
committerDimitry Andric <dim@FreeBSD.org>2012-02-21 20:55:43 +0000
commit8508b798359bec3d7b3dc612d06cc432de865588 (patch)
tree2367406e9a3bcc4b6dadcfcb2afc2238657fa63b /sys/conf/kern.mk
parenta95852edf3604c6b35fe661924a2a9da43b2e3b1 (diff)
downloadsrc-8508b798359bec3d7b3dc612d06cc432de865588.tar.gz
src-8508b798359bec3d7b3dc612d06cc432de865588.zip
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
Notes
Notes: svn path=/head/; revision=231978
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 d561aaeff368..5ca83ac36bf0 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.