15 Aug
2022
15 Aug
'22
9:55 a.m.
From: Nick Desaulniers
Sent: 10 August 2022 22:14
On Tue, Aug 9, 2022 at 6:08 PM Nathan Chancellor nathan@kernel.org wrote:
A recent change in clang strengthened its -Wbitfield-constant-conversion to warn when 1 is assigned to a 1-bit signed integer bitfield, as it can only be 0 or -1, not 1:
Is there a -Wsigned-bitfield ? You probably don't ever want the compiler to be generating the code to sign-propagate a bitfield.
David
- Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)