diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-05-04 22:56:31 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-05-04 23:05:02 -0400 |
commit | 5318ba65f8641ddc05e330c8545f9922cd3c48d6 (patch) | |
tree | f513fded4625cf7782aebc2b3e7aa14261b987b1 /sim/rl78/mem.c | |
parent | fa94b3a7c817a5e6615b24eeb3ac569b70af7e81 (diff) | |
download | gdb-5318ba65f8641ddc05e330c8545f9922cd3c48d6.zip gdb-5318ba65f8641ddc05e330c8545f9922cd3c48d6.tar.gz gdb-5318ba65f8641ddc05e330c8545f9922cd3c48d6.tar.bz2 |
sim: rl78: clean up various warnings
A random grab bag of minor fixes to enable -Werror for this port.
Fix local prototypes for a bunch of functions (e.g. adding static).
Add missing includes for missing prototypes.
Move local variable decls from the middle of functions to the top
of the scope.
Fix a logic error when processing commands where p was reassigned
to cmd and then has its leading whitespace scanned a 2nd time.
Handle short reads with fread().
Diffstat (limited to 'sim/rl78/mem.c')
-rw-r--r-- | sim/rl78/mem.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sim/rl78/mem.c b/sim/rl78/mem.c index 8527e02..77e4987 100644 --- a/sim/rl78/mem.c +++ b/sim/rl78/mem.c @@ -63,9 +63,9 @@ mem_rom_size (int rom_bytes) rom_limit = rom_bytes; } -int mirror_rom_base = 0x01000; -int mirror_ram_base = 0xf1000; -int mirror_length = 0x7000; +static int mirror_rom_base = 0x01000; +static int mirror_ram_base = 0xf1000; +static int mirror_length = 0x7000; void mem_set_mirror (int rom_base, int ram_base, int length) |