diff --git a/sys/conf/files b/sys/conf/files index d2cb2ee5ee16..8b30d17f28b5 100644 --- a/sys/conf/files +++ b/sys/conf/files @@ -3461,7 +3461,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 d913f79ff132..d7973c868908 100644 --- a/sys/modules/ibcore/Makefile +++ b/sys/modules/ibcore/Makefile @@ -21,3 +21,6 @@ CFLAGS+= -DINET6 -DINET -DOFED .include CFLAGS+= -Wno-cast-qual -Wno-pointer-arith ${GCC_MS_EXTENSIONS} + +CWARNFLAGS.cm.c= -Wno-unused-function +CWARNFLAGS+= ${CWARNFLAGS.${.IMPSRC:T}}