summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2014-01-04 22:13:16 +0000
committerdim <dim@FreeBSD.org>2014-01-04 22:13:16 +0000
commit1740bd87f0c5d4f6e4d585c3883661e2500d8bc4 (patch)
treeb0830cf258ba160b69f43d8916de6ef9ceabe373
parent385c846a94c1cf050fad80f9421fdb7e8d3281c3 (diff)
downloadFreeBSD-src-1740bd87f0c5d4f6e4d585c3883661e2500d8bc4.zip
FreeBSD-src-1740bd87f0c5d4f6e4d585c3883661e2500d8bc4.tar.gz
MFC r260104:
For sys/ofed/drivers/infiniband/core/cm.c, disable warning about unused functions for now.
-rw-r--r--sys/conf/files2
-rw-r--r--sys/modules/ibcore/Makefile3
2 files changed, 4 insertions, 1 deletions
diff --git a/sys/conf/files b/sys/conf/files
index 720aa0e..1e4287e 100644
--- a/sys/conf/files
+++ b/sys/conf/files
@@ -3440,7 +3440,7 @@ ofed/drivers/infiniband/core/mad.c optional ofed \
compile-with "${OFED_C} -I$S/ofed/drivers/infiniband/core/"
ofed/drivers/infiniband/core/cm.c optional ofed \
no-depend \
- compile-with "${OFED_C} -I$S/ofed/drivers/infiniband/core/"
+ compile-with "${OFED_C} -I$S/ofed/drivers/infiniband/core/ -Wno-unused-function"
ofed/drivers/infiniband/core/cma.c optional ofed \
no-depend \
compile-with "${OFED_C} -I$S/ofed/drivers/infiniband/core/"
diff --git a/sys/modules/ibcore/Makefile b/sys/modules/ibcore/Makefile
index d913f79..d7973c8 100644
--- a/sys/modules/ibcore/Makefile
+++ b/sys/modules/ibcore/Makefile
@@ -21,3 +21,6 @@ CFLAGS+= -DINET6 -DINET -DOFED
.include <bsd.kmod.mk>
CFLAGS+= -Wno-cast-qual -Wno-pointer-arith ${GCC_MS_EXTENSIONS}
+
+CWARNFLAGS.cm.c= -Wno-unused-function
+CWARNFLAGS+= ${CWARNFLAGS.${.IMPSRC:T}}
OpenPOWER on IntegriCloud