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)
Wed, Sep 2, 7:35 PM
Unknown Object (File)
Mon, Aug 24, 9:48 PM
Unknown Object (File)
Mon, Aug 24, 3:37 PM
Unknown Object (File)
Sun, Aug 9, 3:08 AM
Unknown Object (File)
Sat, Aug 8, 7:29 PM
Unknown Object (File)
Aug 5 2026, 6:40 PM
Unknown Object (File)
Jul 28 2026, 5:25 AM
Unknown Object (File)
Jul 26 2026, 5:55 PM
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