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

Details

Provenance
dimAuthored on Feb 8 2022, 8:46 PM
Parents
rG7d8a4eb943a9: tty_info: Avoid warning by using logical instead of bitwise operators
Branches
Unknown
Tags
Unknown