This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/17170] -Wdefault-bitfield-sign


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]