summaryrefslogtreecommitdiffstats
path: root/sys/modules/mps
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2012-03-23 11:35:01 +0000
committerdim <dim@FreeBSD.org>2012-03-23 11:35:01 +0000
commita7368abeec243f83cfc54a018e2e3a3ba3a9c5d4 (patch)
tree93810de26a455c3c6e2a4233058e2b8e4c79f778 /sys/modules/mps
parent9acd4342b35d7b6e64631c825fb54ba3efea712b (diff)
downloadFreeBSD-src-a7368abeec243f83cfc54a018e2e3a3ba3a9c5d4.zip
FreeBSD-src-a7368abeec243f83cfc54a018e2e3a3ba3a9c5d4.tar.gz
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
Diffstat (limited to 'sys/modules/mps')
-rw-r--r--sys/modules/mps/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/modules/mps/Makefile b/sys/modules/mps/Makefile
index b858964..d8f82c6 100644
--- a/sys/modules/mps/Makefile
+++ b/sys/modules/mps/Makefile
@@ -11,3 +11,6 @@ SRCS+= device_if.h bus_if.h pci_if.h
#CFLAGS += -DMPS_DEBUG
.include <bsd.kmod.mk>
+
+CWARNFLAGS.mps_sas.c= ${NO_WUNNEEDED_INTERNAL_DECL}
+CWARNFLAGS+= ${CWARNFLAGS.${.IMPSRC:T}}
OpenPOWER on IntegriCloud