From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37712) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJlTh-0007WU-38 for qemu-devel@nongnu.org; Fri, 06 Feb 2015 11:09:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YJlTc-00069M-UB for qemu-devel@nongnu.org; Fri, 06 Feb 2015 11:09:56 -0500 Received: from mail-qa0-x234.google.com ([2607:f8b0:400d:c00::234]:58790) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJlTc-00069H-QK for qemu-devel@nongnu.org; Fri, 06 Feb 2015 11:09:52 -0500 Received: by mail-qa0-f52.google.com with SMTP id x12so11455483qac.11 for ; Fri, 06 Feb 2015 08:09:52 -0800 (PST) Sender: Richard Henderson Message-ID: <54D4E74C.9070804@twiddle.net> Date: Fri, 06 Feb 2015 08:09:48 -0800 From: Richard Henderson MIME-Version: 1.0 References: <1423233250-15853-1-git-send-email-peter.maydell@linaro.org> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 0/4] target-arm: fix various clang UB sanitizer warnings List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Greg Bellows , Peter Maydell Cc: QEMU Developers , Patch Tracking On 02/06/2015 07:57 AM, Greg Bellows wrote: > Similar to the #define approach, but possibly with the benefits of the enum. > What if you declare each enum separately as const unsigned int? This is not c++. That won't do what you want. r~