summary refs log tree commit diff stats
path: root/disas/mips.c
diff options
context:
space:
mode:
authorLeon Alrae <leon.alrae@imgtec.com>2014-12-12 16:12:11 +0000
committerLeon Alrae <leon.alrae@imgtec.com>2014-12-16 12:45:20 +0000
commit8ef39152636d27b0d3340fcf030c3edb85a436cb (patch)
tree674e8101d103f478a22263f2654ea8ef40a1022c /disas/mips.c
parent8e5f7570448185297917d82d61ffbe27eff47a01 (diff)
downloadfocaccia-qemu-8ef39152636d27b0d3340fcf030c3edb85a436cb.tar.gz
focaccia-qemu-8ef39152636d27b0d3340fcf030c3edb85a436cb.zip
disas/mips: disable unused mips16_to_32_reg_map[]
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 <leon.alrae@imgtec.com>
Diffstat (limited to 'disas/mips.c')
-rw-r--r--disas/mips.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/disas/mips.c b/disas/mips.c
index b94d5d9edd..1afe0c5511 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] =
 {