From 7754a6ebe08a5b4863fe24bdbfbb6fc9e15dd561 Mon Sep 17 00:00:00 2001 From: Alistair Popple Date: Fri, 14 Jul 2017 14:51:11 +1000 Subject: Makefile.am: Enable -Wall -Werror for libpdbg Several minor fixes were required to enable building on both x64 and ARM with -Wall -Werror, mostly related to unused variables and bad printf string formats. Signed-off-by: Alistair Popple --- libpdbg/chip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libpdbg/chip.c') diff --git a/libpdbg/chip.c b/libpdbg/chip.c index 5265afe..70d349d 100644 --- a/libpdbg/chip.c +++ b/libpdbg/chip.c @@ -126,7 +126,7 @@ int ram_stop_thread(struct target *thread_target) static int ram_instructions(struct thread *thread, uint64_t *opcodes, uint64_t *results, int len, unsigned int lpar) { - uint64_t ram_mode, opcode, r0 = 0, r1 = 0, scratch = 0; + uint64_t opcode = 0, r0 = 0, r1 = 0, scratch = 0; int i; int exception = 0; -- cgit v1.2.1