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/configure | |
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/configure')
-rwxr-xr-x | sim/rl78/configure | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sim/rl78/configure b/sim/rl78/configure index 59cb1ec..6e20768 100755 --- a/sim/rl78/configure +++ b/sim/rl78/configure @@ -11844,6 +11844,7 @@ _ACEOF + # Check whether --enable-werror was given. if test "${enable_werror+set}" = set; then : enableval=$enable_werror; case "${enableval}" in @@ -11860,6 +11861,9 @@ if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then fi WERROR_CFLAGS="" + if test "${ERROR_ON_WARNING}" = yes ; then + WERROR_CFLAGS="-Werror" + fi build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \ -Wpointer-sign \ @@ -11941,7 +11945,6 @@ $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; } fi - hardware="cfi core pal glue " sim_hw_cflags="-DWITH_HW=1" sim_hw="$hardware" |