From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41793) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVHLv-0000O2-Qp for qemu-devel@nongnu.org; Mon, 15 Feb 2016 06:30:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aVHLu-0004WN-V7 for qemu-devel@nongnu.org; Mon, 15 Feb 2016 06:30:03 -0500 Received: from mail-qk0-x22c.google.com ([2607:f8b0:400d:c09::22c]:35681) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVHLu-0004WE-RC for qemu-devel@nongnu.org; Mon, 15 Feb 2016 06:30:02 -0500 Received: by mail-qk0-x22c.google.com with SMTP id o6so54190319qkc.2 for ; Mon, 15 Feb 2016 03:30:02 -0800 (PST) Sender: Richard Henderson From: Richard Henderson Date: Mon, 15 Feb 2016 22:29:23 +1100 Message-Id: <1455535767-28194-2-git-send-email-rth@twiddle.net> In-Reply-To: <1455535767-28194-1-git-send-email-rth@twiddle.net> References: <1455535767-28194-1-git-send-email-rth@twiddle.net> Subject: [Qemu-devel] [PULL 1/5] tcg: Work around clang bug wrt enum ranges, part 2 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org A previous patch patch changed the type of REG from int to enum TCGReg, which provokes the following bug in clang: https://llvm.org/bugs/show_bug.cgi?id=16154 Signed-off-by: Richard Henderson --- tcg/tcg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcg/tcg.c b/tcg/tcg.c index 0317c9e..664e8e1 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.c @@ -1602,7 +1602,7 @@ static void dump_regs(TCGContext *s) static void check_regs(TCGContext *s) { - TCGReg reg; + int reg; int k; TCGTemp *ts; char buf[64]; -- 2.5.0