aboutsummaryrefslogtreecommitdiff
path: root/sys/conf/kern.mk
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2012-03-23 11:35:01 +0000
committerDimitry Andric <dim@FreeBSD.org>2012-03-23 11:35:01 +0000
commit3b5683fce6f6fa72bfb0c0eb27ed6c50e5781b2d (patch)
tree93810de26a455c3c6e2a4233058e2b8e4c79f778 /sys/conf/kern.mk
parent6c11edf6e8fdece23e4b73cba18469567194fb9f (diff)
downloadsrc-3b5683fce6f6fa72bfb0c0eb27ed6c50e5781b2d.tar.gz
src-3b5683fce6f6fa72bfb0c0eb27ed6c50e5781b2d.zip
Work around the following clang warning in mps(4):
sys/dev/mps/mps_sas.c:861:1: error: function 'mpssas_discovery_timeout' is not needed and will not be emitted [-Werror,-Wunneeded-internal-declaration] mpssas_discovery_timeout(void *data) ^ Because the driver is obtained from upstream, we don't want to modify it; just silence the warning instead, it is harmless. MFC after: 3 days
Notes
Notes: svn path=/head/; revision=233354
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 1dfc9fbe674a..5cb718ede462 100644
--- a/sys/conf/kern.mk
+++ b/sys/conf/kern.mk
@@ -23,6 +23,7 @@ NO_WSHIFT_COUNT_OVERFLOW= -Wno-shift-count-overflow
NO_WUNUSED_VALUE= -Wno-unused-value
NO_WSELF_ASSIGN= -Wno-self-assign
NO_WFORMAT_SECURITY= -Wno-format-security
+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.