This is the mail archive of the gcc-help@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]

Re: Quieten -Wconversion warnings for bit-fields


Dear Manuel,

On Sun, 23 Mar 2008 20:15:18 +0100, Manuel LÃpez-IbÃÃez wrote:
> I believe sm & 1U could and should silence the warning. Please, open
> a bug report http://gcc.gnu.org/bugs.html and add manu@gcc.gnu.org to
> the CC list.

Done.  It is bug 35701 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35701
I hope I did it properly...

> We probably have a similar issue with unsigned short x = sm & 1U; or
> does that work?

Yes, there is the same issue.  I also included it in the test case.

Kind regards,
					Christian


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