Received: from eggs.gnu.org ([2001:4830:134:3::10]:43622) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XzTMe-0007F7-69 for qemu-devel@nongnu.org; Fri, 12 Dec 2014 11:46:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XzTMZ-0003Bh-3Z for qemu-devel@nongnu.org; Fri, 12 Dec 2014 11:46:48 -0500 Received: from mailapp01.imgtec.com ([195.59.15.196]:11258) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XzTMY-0003BN-SI for qemu-devel@nongnu.org; Fri, 12 Dec 2014 11:46:43 -0500 From: Leon Alrae Date: Fri, 12 Dec 2014 16:46:31 +0000 Message-ID: <1418402791-27891-1-git-send-email-leon.alrae@imgtec.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH v2 3/4] disas/mips: disable unused mips16_to_32_reg_map[] List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aurelien@aurel32.net This array is used by print_mips16_insn_arg() which is guarded by #if 0. Therefore doing the same with the array as it generates clang warnings. Signed-off-by: Leon Alrae --- disas/mips.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/disas/mips.c b/disas/mips.c index b94d5d9..1afe0c5 100644 --- a/disas/mips.c +++ b/disas/mips.c @@ -3511,6 +3511,7 @@ struct mips_cp0sel_name const char * const name; }; +#if 0 /* The mips16 registers. */ static const unsigned int mips16_to_32_reg_map[] = { @@ -3518,7 +3519,7 @@ static const unsigned int mips16_to_32_reg_map[] = }; #define mips16_reg_names(rn) mips_gpr_names[mips16_to_32_reg_map[rn]] - +#endif static const char * const mips_gpr_names_numeric[32] = { -- 2.1.0