sim: ppc: enable -Wno-format for mingw targets

This mirrors what we do for other builds already.
This commit is contained in:
Mike Frysinger 2021-05-29 18:02:02 -04:00
parent 952170707b
commit c5b349e1c5
3 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2021-05-29 Mike Frysinger <vapier@gentoo.org>
* configure.ac (WERROR_CFLAGS): Add -Wno-format for mingw32 hosts.
* configure: Regenerate.
2021-05-29 Mike Frysinger <vapier@gentoo.org>
* emul_generic.c (emul_write_status): Rename errno to err.

3
sim/ppc/configure vendored
View File

@ -4778,6 +4778,9 @@ WERROR_CFLAGS=""
if test "${ERROR_ON_WARNING}" = yes ; then
WERROR_CFLAGS="-Werror"
fi
case "${host}" in
*-*-mingw32*) WERROR_CFLAGS="$WERROR_CFLAGS -Wno-format" ;;
esac
# Check whether --enable-sim-warnings was given.

View File

@ -602,6 +602,11 @@ WERROR_CFLAGS=""
if test "${ERROR_ON_WARNING}" = yes ; then
WERROR_CFLAGS="-Werror"
fi
dnl Enable -Wno-format by default when using gcc on mingw since many
dnl GCC versions complain about %I64.
case "${host}" in
*-*-mingw32*) WERROR_CFLAGS="$WERROR_CFLAGS -Wno-format" ;;
esac
AC_SUBST(WERROR_CFLAGS)
AC_ARG_ENABLE(sim-warnings,