aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2021-01-30 05:48:28 +0000
committerKyle Evans <kevans@FreeBSD.org>2021-02-04 02:55:56 +0000
commit1535f6701704ef5bc58768490b05cbf0b0958671 (patch)
treeec21178b9859af0b56da0634c16fa4d52086454e
parent8a680912a190d619be6194f88917052eed327f7b (diff)
downloadsrc-1535f6701704ef5bc58768490b05cbf0b0958671.tar.gz
src-1535f6701704ef5bc58768490b05cbf0b0958671.zip
ofed: fix the WITH_OFED_EXTRA build
This option was not tested when WARNS was globally lifted in the src tree up to 6. Drop WARNS back down to unbreak the build; note that this is still enabling more warnings than it had before the WARNS change, so the gcc build may need to be independently evaluated at this level. PR: 252865 (cherry picked from commit 9ca71db4959f674d75f7b4fd0f72bdc1e2e99abb)
-rw-r--r--usr.bin/ofed/opensm/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/ofed/opensm/Makefile b/usr.bin/ofed/opensm/Makefile
index 2c1f504dc191..738b6ace31a1 100644
--- a/usr.bin/ofed/opensm/Makefile
+++ b/usr.bin/ofed/opensm/Makefile
@@ -99,4 +99,6 @@ CFLAGS+= -I${_spath:H} -DHAVE_CONFIG_H=1
CFLAGS+= -I${SYSROOT:U${DESTDIR}}/${INCLUDEDIR}/infiniband
LIBADD= opensm osmvendor osmcomp wrap pthread
+WARNS?= 2
+
.include <bsd.prog.mk>