aboutsummaryrefslogtreecommitdiff
path: root/sim/h8300/configure
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-05-08 12:41:04 -0400
committerMike Frysinger <vapier@gentoo.org>2021-05-08 12:43:06 -0400
commitbb608f811bcd013cf7f8b8038310f169639f29d5 (patch)
tree750f4b43e6f1d7068f811ca9f1c1a165f4dc5fb7 /sim/h8300/configure
parentb50a658ac100edaef1d0a0f34e2586314f815f7b (diff)
downloadgdb-bb608f811bcd013cf7f8b8038310f169639f29d5.zip
gdb-bb608f811bcd013cf7f8b8038310f169639f29d5.tar.gz
gdb-bb608f811bcd013cf7f8b8038310f169639f29d5.tar.bz2
sim: h8300: clean up various warnings
A random grab bag of minor fixes to enable -Werror for this port. Disable h8_set_macS for now as it's unused. Initialize trace & intMask before using them. Mark local set_h8300h function static.
Diffstat (limited to 'sim/h8300/configure')
-rwxr-xr-xsim/h8300/configure13
1 files changed, 8 insertions, 5 deletions
diff --git a/sim/h8300/configure b/sim/h8300/configure
index 2627483..4849a06 100755
--- a/sim/h8300/configure
+++ b/sim/h8300/configure
@@ -11944,6 +11944,11 @@ fi
fi
+
+
+
+
+
# Check whether --enable-werror was given.
if test "${enable_werror+set}" = set; then :
enableval=$enable_werror; case "${enableval}" in
@@ -11960,6 +11965,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 \
@@ -12041,11 +12049,6 @@ $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
fi
-
-
-
-
-
hardware="cfi core pal glue "
sim_hw_cflags="-DWITH_HW=1"
sim_hw="$hardware"