diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2022-02-08 20:46:03 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2022-02-08 20:46:08 +0000 |
commit | 5f2aca83940097d7d23b4137073fb601f8e74232 (patch) | |
tree | 206b049369330e32718d3b796059ea67af9451f5 /share | |
parent | 7d8a4eb943a907a92dd400432c3c3adcbd93dad9 (diff) | |
download | src-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 'share')
-rw-r--r-- | share/mk/bsd.sys.mk | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk index 13be4c1442fc..1673ae8c449a 100644 --- a/share/mk/bsd.sys.mk +++ b/share/mk/bsd.sys.mk @@ -111,6 +111,9 @@ CWARNFLAGS.clang+= -Wno-array-bounds ${COMPILER_TYPE} == "gcc") CWARNFLAGS+= -Wno-misleading-indentation .endif # NO_WMISLEADING_INDENTATION +.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 140000 +NO_WBITWISE_INSTEAD_OF_LOGICAL= -Wno-bitwise-instead-of-logical +.endif .endif # WARNS .if defined(FORMAT_AUDIT) |