summaryrefslogtreecommitdiffstats
path: root/libpdbg/chip.c
diff options
context:
space:
mode:
authorAlistair Popple <alistair@popple.id.au>2017-07-14 14:51:11 +1000
committerAlistair Popple <alistair@popple.id.au>2017-07-14 14:56:32 +1000
commit7754a6ebe08a5b4863fe24bdbfbb6fc9e15dd561 (patch)
tree1059647d639409915512d2aaf5a74e379bbe2f53 /libpdbg/chip.c
parent62ddc2bfa872aeaae3bf07e8ac1d9e6b028c87ce (diff)
downloadpdbg-7754a6ebe08a5b4863fe24bdbfbb6fc9e15dd561.tar.gz
pdbg-7754a6ebe08a5b4863fe24bdbfbb6fc9e15dd561.zip
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 <alistair@popple.id.au>
Diffstat (limited to 'libpdbg/chip.c')
-rw-r--r--libpdbg/chip.c2
1 files changed, 1 insertions, 1 deletions
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;
OpenPOWER on IntegriCloud