diff options
| author | Mason Reed <mason@vector35.com> | 2025-07-01 13:25:59 -0400 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2025-07-02 01:58:31 -0400 |
| commit | 15750e2c858569266d53a51e311d266322adfdba (patch) | |
| tree | 9e43f9c841d38adb31373d06f8adc4bc27b7e060 /arch | |
| parent | 110c06851bbbd09f78a3e87979d529d6e09df851 (diff) | |
Fix misc warnings in PPC disassembler
Diffstat (limited to 'arch')
| -rw-r--r-- | arch/powerpc/disassembler.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/powerpc/disassembler.cpp b/arch/powerpc/disassembler.cpp index 0b513d70..54e3c87c 100644 --- a/arch/powerpc/disassembler.cpp +++ b/arch/powerpc/disassembler.cpp @@ -43,7 +43,7 @@ bool FillInstruction(Instruction* instruction, const uint8_t* data, size_t lengt default: MYLOG("FillInstruction: unrecognized length %d", length); - LogWarn("FillInstruction: unrecognized length %d", length); + LogWarn("FillInstruction: unrecognized length %zu", length); return false; } } @@ -141,10 +141,6 @@ bool PushOperandTokens(string& result, const Operand* op) int disassemble(uint8_t *data, uint32_t addr, string& result, uint32_t decodeFlags) { - int rc = -1; - - char buf[32]; - size_t strlenMnem; Instruction instruction; const char* mnemonic = NULL; size_t len = 4; |
