]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
sim: rl78: clean up various warnings
authorMike Frysinger <vapier@gentoo.org>
Wed, 5 May 2021 02:56:31 +0000 (22:56 -0400)
committerMike Frysinger <vapier@gentoo.org>
Wed, 5 May 2021 03:05:02 +0000 (23:05 -0400)
commit5318ba65f8641ddc05e330c8545f9922cd3c48d6
treef513fded4625cf7782aebc2b3e7aa14261b987b1
parentfa94b3a7c817a5e6615b24eeb3ac569b70af7e81
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().
sim/rl78/ChangeLog
sim/rl78/configure
sim/rl78/configure.ac
sim/rl78/cpu.c
sim/rl78/gdb-if.c
sim/rl78/mem.c
sim/rl78/mem.h
sim/rl78/rl78.c
sim/rl78/trace.c