diff options
author | Mike Frysinger <vapier@gentoo.org> | 2016-08-13 01:41:57 -0700 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2016-08-13 22:46:27 -0700 |
commit | 527aaa4a3143afedd8dd85aa70862328a9dbe627 (patch) | |
tree | 5110c46b53b2d0cfb648a3fab594c5b89aa5b2df /sim/m68hc11/emulos.c | |
parent | 4c171e25a8c83fc26b78430fa632fa9e64f61050 (diff) | |
download | gdb-527aaa4a3143afedd8dd85aa70862328a9dbe627.zip gdb-527aaa4a3143afedd8dd85aa70862328a9dbe627.tar.gz gdb-527aaa4a3143afedd8dd85aa70862328a9dbe627.tar.bz2 |
sim: m68hc11: fix up various prototype related warnings
A few funcs are only used locally, so mark them static to avoid warnings
due to -Wmissing-prototypes.
Some funcs cast the return value wrong, so drop them (and let void * just
work by default).
Update some prototypes to be new style.
Diffstat (limited to 'sim/m68hc11/emulos.c')
-rw-r--r-- | sim/m68hc11/emulos.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sim/m68hc11/emulos.c b/sim/m68hc11/emulos.c index 77607c7..e11c618 100644 --- a/sim/m68hc11/emulos.c +++ b/sim/m68hc11/emulos.c @@ -33,7 +33,7 @@ static int bench_mode = -1; static struct timeval bench_start; static struct timeval bench_stop; -void +static void emul_bench (struct _sim_cpu* cpu) { int op; @@ -90,7 +90,7 @@ emul_bench (struct _sim_cpu* cpu) } #endif -void +static void emul_write(struct _sim_cpu* state) { int addr = cpu_get_x (state) & 0x0FFFF; @@ -115,7 +115,7 @@ emul_write(struct _sim_cpu* state) But doing an exit () on a real target is really a non-sense. exit () is important for the validation of GCC. The exit status is passed in 'D' register. */ -void +static void emul_exit (sim_cpu *cpu) { sim_engine_halt (CPU_STATE (cpu), cpu, |