This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Quieten -Wconversion warnings for bit-fields
- From: Christian Iseli <Christian dot Iseli at licr dot org>
- To: manu at gcc dot gnu dot org
- Cc: manuellopezibanez at yahoo dot es, gcc-help at gcc dot gnu dot org
- Date: Wed, 26 Mar 2008 00:30:14 +0100
- Subject: Re: Quieten -Wconversion warnings for bit-fields
- References: <20080303121458.2da0b219@ludwig-alpha.unil.ch> <47E6AC46.7010906@yahoo.es>
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