[Bug c/17170] -Wdefault-bitfield-sign
jsm at polyomino dot org dot uk
gcc-bugzilla@gcc.gnu.org
Tue Aug 31 15:26:00 GMT 2004
------- Additional Comments From jsm at polyomino dot org dot uk 2004-08-31 15:26 -------
Subject: Re: -Wdefault-bitfield-sign
On Tue, 31 Aug 2004, terra at gnome dot org wrote:
> Warnings go where they are likely to discover problems. This is one such problem
> area, notable the signed:1 case. And the noise from misfires is going to be
> minimal.
We do warn for assigning a constant 1 to a signed 1-bit bit-field (in
3.5). But this suggested warning does make sense for code portability;
not all 1-bit fields necessarily get constant 1 assigned to them.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17170
More information about the Gcc-bugs
mailing list