From: Antoine Pelisse Date: Wed, 16 Jan 2013 23:15:43 GMT Subject: Re: [PATCH 1/2] fix clang -Wconstant-conversion with bit fields Message-ID: In-Reply-To: So I guess we should drop this patch, it's probably not worth it, especially if it's been fixed already by clang. On Thu, Jan 17, 2013 at 12:09 AM, Antoine Pelisse wrote: > On Thu, Jan 17, 2013 at 12:08 AM, John Keeping wrote: >> On Wed, Jan 16, 2013 at 11:47:22PM +0100, Antoine Pelisse wrote: >>> clang incorrectly reports a constant conversion warning (implicit >>> truncation to bit field) when using the "flag &= ~FLAG" form, because >>> ~FLAG needs to be truncated. >> Which version of clang did you see this with? I don't get these >> warnings with clang 3.2. > > Ubuntu clang version 3.0-6ubuntu3 (tags/RELEASE_30/final) (based on LLVM 3.0) > > It's good to know it's been fixed !