This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/17170] -Wdefault-bitfield-sign
- From: "jsm at polyomino dot org dot uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Aug 2004 15:26:26 -0000
- Subject: [Bug c/17170] -Wdefault-bitfield-sign
- References: <20040824155045.17170.terra@gnome.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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