Page MenuHomeFreeBSD

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

Authored by fuz on Dec 3 2025, 6:41 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Aug 9, 3:08 AM
Unknown Object (File)
Sat, Aug 8, 7:29 PM
Unknown Object (File)
Wed, Aug 5, 6:40 PM
Unknown Object (File)
Tue, Jul 28, 5:25 AM
Unknown Object (File)
Sun, Jul 26, 5:55 PM
Unknown Object (File)
Thu, Jul 23, 9:50 AM
Unknown Object (File)
Jul 15 2026, 6:57 AM
Unknown Object (File)
Jul 15 2026, 6:57 AM
Subscribers

Details

Summary

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, too.

Reported by: Martin Filla <freebsd@sysctl.cz>
MFC after: 1 month

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable