From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32334 invoked by alias); 25 Mar 2008 23:30:45 -0000 Received: (qmail 32321 invoked by uid 22791); 25 Mar 2008 23:30:45 -0000 X-Spam-Check-By: sourceware.org Received: from uldns1.unil.ch (HELO uldns1.unil.ch) (130.223.8.20) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 25 Mar 2008 23:30:18 +0000 Received: from ludwig-alpha.unil.ch ([130.223.122.62]) by uldns1.unil.ch with esmtp (Exim 4.44) id 1JeIat-0005UX-B1; Wed, 26 Mar 2008 00:30:15 +0100 Date: Tue, 25 Mar 2008 23:30:00 -0000 From: Christian Iseli To: manu@gcc.gnu.org Cc: manuellopezibanez@yahoo.es, gcc-help@gcc.gnu.org Subject: Re: Quieten -Wconversion warnings for bit-fields Message-ID: <20080326003014.2122c406@ludwig-alpha.unil.ch> In-Reply-To: <47E6AC46.7010906@yahoo.es> References: <20080303121458.2da0b219@ludwig-alpha.unil.ch> <47E6AC46.7010906@yahoo.es> X-Mailer: Claws Mail 3.3.1 (GTK+ 2.12.5; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-GW-Unil-From-IP: ludwig-alpha.unil.ch ([130.223.122.62]) Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2008-03/txt/msg00250.txt.bz2 Dear Manuel, On Sun, 23 Mar 2008 20:15:18 +0100, Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez wrot= e: > 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=3D35701 I hope I did it properly... > We probably have a similar issue with unsigned short x =3D sm & 1U; or > does that work? Yes, there is the same issue. I also included it in the test case. Kind regards, Christian