diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-05-04 08:35:40 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-05-04 21:57:49 -0400 |
commit | 91eea12156fa3d688f6bda1a82fce92241dac2ff (patch) | |
tree | 2c9e18808f3866a64c3bee50b5e7479d38b88f78 /sim/mcore/configure | |
parent | a147f3ff8c353a68d8525149f34d08bbe62bc6fa (diff) | |
download | fsf-binutils-gdb-91eea12156fa3d688f6bda1a82fce92241dac2ff.zip fsf-binutils-gdb-91eea12156fa3d688f6bda1a82fce92241dac2ff.tar.gz fsf-binutils-gdb-91eea12156fa3d688f6bda1a82fce92241dac2ff.tar.bz2 |
sim: mcore: fix build time warnings
Once we fix a minor const warning we can enable -Werror in here.
Diffstat (limited to 'sim/mcore/configure')
-rwxr-xr-x | sim/mcore/configure | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sim/mcore/configure b/sim/mcore/configure index 94c4f26..2d1e87f 100755 --- a/sim/mcore/configure +++ b/sim/mcore/configure @@ -11943,6 +11943,7 @@ fi fi + # Check whether --enable-werror was given. if test "${enable_werror+set}" = set; then : enableval=$enable_werror; case "${enableval}" in @@ -11959,6 +11960,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 \ @@ -12040,7 +12044,6 @@ $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; } fi - hardware="cfi core pal glue " sim_hw_cflags="-DWITH_HW=1" sim_hw="$hardware" |