From 3b5683fce6f6fa72bfb0c0eb27ed6c50e5781b2d Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Fri, 23 Mar 2012 11:35:01 +0000 Subject: 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 --- sys/conf/kern.mk | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/conf/kern.mk') 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. -- cgit v1.2.3