aboutsummaryrefslogtreecommitdiff
path: root/cddl/lib
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2022-02-08 20:46:03 +0000
committerDimitry Andric <dim@FreeBSD.org>2022-02-08 20:46:08 +0000
commit5f2aca83940097d7d23b4137073fb601f8e74232 (patch)
tree206b049369330e32718d3b796059ea67af9451f5 /cddl/lib
parent7d8a4eb943a907a92dd400432c3c3adcbd93dad9 (diff)
downloadsrc-5f2aca83940097d7d23b4137073fb601f8e74232.tar.gz
src-5f2aca83940097d7d23b4137073fb601f8e74232.zip
Disable clang 14 warning about bitwise operators in zstd
Parts of zstd, used in openzfs and other places, trigger a new clang 14 -Werror warning: ``` sys/contrib/zstd/lib/decompress/huf_decompress.c:889:25: error: use of bitwise '&' with boolean operands [-Werror,-Wbitwise-instead-of-logical] (BIT_reloadDStreamFast(&bitD1) == BIT_DStream_unfinished) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ``` While the warning is benign, it should ideally be fixed upstream and then vendor-imported, but for now silence it selectively. MFC after: 3 days
Diffstat (limited to 'cddl/lib')
-rw-r--r--cddl/lib/libzpool/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/cddl/lib/libzpool/Makefile b/cddl/lib/libzpool/Makefile
index 1c15cc265d48..cbd485a4dd6b 100644
--- a/cddl/lib/libzpool/Makefile
+++ b/cddl/lib/libzpool/Makefile
@@ -264,5 +264,6 @@ CFLAGS+= -g -DDEBUG=1
CFLAGS.zfs_zstd.c= -Wno-cast-qual -Wno-pointer-arith
CFLAGS.zstd.c+= -fno-tree-vectorize
+CFLAGS.zstd.c+= ${NO_WBITWISE_INSTEAD_OF_LOGICAL}
.include <bsd.lib.mk>