From 1a70782cda3ca8433d79f1c54a74e242df55182b Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 27 Feb 2015 21:31:34 -0500 Subject: arm_disasm: Remove unused variable Also declared an array as static, as it's only used in this translation unit. --- src/core/arm/disassembler/arm_disasm.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/core/arm/disassembler/arm_disasm.cpp b/src/core/arm/disassembler/arm_disasm.cpp index f7c7451e9..5fb5966af 100644 --- a/src/core/arm/disassembler/arm_disasm.cpp +++ b/src/core/arm/disassembler/arm_disasm.cpp @@ -24,7 +24,7 @@ static const char *cond_names[] = { "RESERVED" }; -const char *opcode_names[] = { +static const char *opcode_names[] = { "invalid", "undefined", "adc", @@ -351,7 +351,6 @@ std::string ARM_Disasm::DisassembleCLZ(uint32_t insn) std::string ARM_Disasm::DisassembleMemblock(Opcode opcode, uint32_t insn) { - std::string tmp_reg; std::string tmp_list; uint8_t cond = (insn >> 28) & 0xf; -- cgit v1.2.3