Re: Quieten -Wconversion warnings for bit-fields

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx 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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux