HomeFreeBSD

Disable clang 14 warning about bitwise operators in zstd

Description

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

(cherry picked from commit 5f2aca83940097d7d23b4137073fb601f8e74232)

Details

Provenance
dimAuthored on Feb 8 2022, 8:46 PM
Parents
rGd07bca9b93fd: x86 atomic.h: remove obsoleted comment
Branches
Unknown
Tags
Unknown