aboutsummaryrefslogtreecommitdiff
path: root/sim/lm32/dv-lm32cpu.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-11-01 00:56:52 -0400
committerMike Frysinger <vapier@gentoo.org>2021-11-01 00:56:52 -0400
commit2871d4d7f3c2971b6dbf003cf8942562cb6526bd (patch)
treee78c37b32c1bd4ea4ece51dabe33e0908aac8fbc /sim/lm32/dv-lm32cpu.c
parent97ebc24886791162786a295300faa24f0fe79f0f (diff)
downloadbinutils-2871d4d7f3c2971b6dbf003cf8942562cb6526bd.zip
binutils-2871d4d7f3c2971b6dbf003cf8942562cb6526bd.tar.gz
binutils-2871d4d7f3c2971b6dbf003cf8942562cb6526bd.tar.bz2
sim: lm32: reduce -Wno-error scope
Clean up some warnings in dv-lm32cpu, and all in sim-if, then reduce the -Werror disable to the files that still aren't clean that now that we require GNU make and can set variables on a per-object basis.
Diffstat (limited to 'sim/lm32/dv-lm32cpu.c')
-rw-r--r--sim/lm32/dv-lm32cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/lm32/dv-lm32cpu.c b/sim/lm32/dv-lm32cpu.c
index 2f702bd..83fe607 100644
--- a/sim/lm32/dv-lm32cpu.c
+++ b/sim/lm32/dv-lm32cpu.c
@@ -141,7 +141,7 @@ deliver_lm32cpu_interrupt (struct hw *me, void *data)
SIM_DESC sd = hw_system (me);
sim_cpu *cpu = STATE_CPU (sd, 0); /* NB: fix CPU 0. */
address_word cia = CPU_PC_GET (cpu);
- int interrupt = (int) data;
+ int interrupt = (uintptr_t) data;
HW_TRACE ((me, "interrupt-check event"));