Skip to content

Commit 15750e2

Browse files
committed
Fix misc warnings in PPC disassembler
1 parent 110c068 commit 15750e2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

arch/powerpc/disassembler.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ bool FillInstruction(Instruction* instruction, const uint8_t* data, size_t lengt
4343

4444
default:
4545
MYLOG("FillInstruction: unrecognized length %d", length);
46-
LogWarn("FillInstruction: unrecognized length %d", length);
46+
LogWarn("FillInstruction: unrecognized length %zu", length);
4747
return false;
4848
}
4949
}
@@ -141,10 +141,6 @@ bool PushOperandTokens(string& result, const Operand* op)
141141

142142
int disassemble(uint8_t *data, uint32_t addr, string& result, uint32_t decodeFlags)
143143
{
144-
int rc = -1;
145-
146-
char buf[32];
147-
size_t strlenMnem;
148144
Instruction instruction;
149145
const char* mnemonic = NULL;
150146
size_t len = 4;

0 commit comments

Comments
 (0)