summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2014-01-04 23:00:56 +0000
committerdim <dim@FreeBSD.org>2014-01-04 23:00:56 +0000
commitdf316577ae0d54f036626453d44673b7640d6ddc (patch)
treea074d916baa8a2bfbe3a9c7385bf92f19e866529
parent1740bd87f0c5d4f6e4d585c3883661e2500d8bc4 (diff)
downloadFreeBSD-src-df316577ae0d54f036626453d44673b7640d6ddc.zip
FreeBSD-src-df316577ae0d54f036626453d44673b7640d6ddc.tar.gz
MFC r260111:
For sys/ofed/drivers/infiniband/hw/mlx4/mcg.c, disable warning about unused variables for now.
-rw-r--r--sys/conf/files2
-rw-r--r--sys/modules/mlx4/Makefile3
2 files changed, 4 insertions, 1 deletions
diff --git a/sys/conf/files b/sys/conf/files
index 1e4287e..194a1c7 100644
--- a/sys/conf/files
+++ b/sys/conf/files
@@ -3548,7 +3548,7 @@ ofed/drivers/infiniband/hw/mlx4/alias_GUID.c optional mlx4ib \
compile-with "${OFED_C_NOIMP} -I$S/ofed/drivers/infiniband/hw/mlx4/"
ofed/drivers/infiniband/hw/mlx4/mcg.c optional mlx4ib \
no-depend obj-prefix "mlx4ib_" \
- compile-with "${OFED_C_NOIMP} -I$S/ofed/drivers/infiniband/hw/mlx4/"
+ compile-with "${OFED_C_NOIMP} -I$S/ofed/drivers/infiniband/hw/mlx4/ -Wno-unused"
ofed/drivers/infiniband/hw/mlx4/sysfs.c optional mlx4ib \
no-depend obj-prefix "mlx4ib_" \
compile-with "${OFED_C_NOIMP} -I$S/ofed/drivers/infiniband/hw/mlx4/"
diff --git a/sys/modules/mlx4/Makefile b/sys/modules/mlx4/Makefile
index e6f20a7..02ee176 100644
--- a/sys/modules/mlx4/Makefile
+++ b/sys/modules/mlx4/Makefile
@@ -27,3 +27,6 @@ opt_inet6.h:
.include <bsd.kmod.mk>
CFLAGS+= -Wno-cast-qual -Wno-pointer-arith ${GCC_MS_EXTENSIONS}
+
+CWARNFLAGS.mcg.c= -Wno-unused
+CWARNFLAGS+= ${CWARNFLAGS.${.IMPSRC:T}}
OpenPOWER on IntegriCloud