aboutsummaryrefslogtreecommitdiff
path: root/sim/d10v/configure
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-04-18 21:13:34 -0400
committerMike Frysinger <vapier@gentoo.org>2021-04-18 21:16:03 -0400
commitd3b0ab8b36319f4232367b046ecfc0c656a177ad (patch)
treed61954ba1616acfd45c3cd5f7c987142465d3692 /sim/d10v/configure
parent3912a8db685f5e19a883d02d66900cdf10a200f0 (diff)
downloadfsf-binutils-gdb-d3b0ab8b36319f4232367b046ecfc0c656a177ad.zip
fsf-binutils-gdb-d3b0ab8b36319f4232367b046ecfc0c656a177ad.tar.gz
fsf-binutils-gdb-d3b0ab8b36319f4232367b046ecfc0c656a177ad.tar.bz2
sim: d10v: fix build warnings
The printf fix uses our PRIxTA for our sim address type. Then cast away the const (since the underlying code safely treats it as such) even if it's ugly. Finally touch up the argv iterator pointer to match the new func arg. With this tidied up, we can delete the SIM_AC_OPTION_WARNINGS(no) call to get the default common behavior where -Werror is enabled.
Diffstat (limited to 'sim/d10v/configure')
-rwxr-xr-xsim/d10v/configure5
1 files changed, 4 insertions, 1 deletions
diff --git a/sim/d10v/configure b/sim/d10v/configure
index 7bde3b2..ce7530d 100755
--- a/sim/d10v/configure
+++ b/sim/d10v/configure
@@ -11978,6 +11978,7 @@ fi
fi
+
# Check whether --enable-werror was given.
if test "${enable_werror+set}" = set; then :
enableval=$enable_werror; case "${enableval}" in
@@ -11994,6 +11995,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 \
@@ -12075,7 +12079,6 @@ $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
fi
-
cgen_breaks=""
if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
cgen_breaks="break cgen_rtx_error";