HomeFreeBSD

libc/stdc_has_single_bit.c: fix gcc warning (-Wparentheses)

Description

libc/stdc_has_single_bit.c: fix gcc warning (-Wparentheses)

gcc14 is concerned that the operator precedence between - and & might
be confusing. Throw in some redundant parentheses to make it shut up.
The LLVM build was fine before this change.

Reported by: Martin Filla <freebsd@sysctl.cz>
Approved by: markj (mentor)
MFC after: 1 month
Fixes: 6296500a85c8474e3ff3fe2f8e4a9d56dd0acd64
Differential Revision: https://reviews.freebsd.org/D54057

Details

Provenance
fuzAuthored on Wed, Dec 3, 6:36 PM
Differential Revision
D54057: libc/stdc_has_single_bit.c: fix gcc warning (-Wparentheses)
Parents
rG853e0440c97a: mt76: add LINUXKPI_PARAM_PREFIX for module_param*
Branches
Unknown
Tags
Unknown