diff options
-rw-r--r-- | sim/ppc/ChangeLog | 5 | ||||
-rwxr-xr-x | sim/ppc/configure | 3 | ||||
-rw-r--r-- | sim/ppc/configure.ac | 5 |
3 files changed, 13 insertions, 0 deletions
diff --git a/sim/ppc/ChangeLog b/sim/ppc/ChangeLog index 501b9f8..fcd74c6 100644 --- a/sim/ppc/ChangeLog +++ b/sim/ppc/ChangeLog @@ -1,5 +1,10 @@ 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. (emul_write2_status): Likewise. * emul_generic.h (emul_write_status, emul_write2_status): Likewise. diff --git a/sim/ppc/configure b/sim/ppc/configure index 235595b..1c2cfda 100755 --- a/sim/ppc/configure +++ b/sim/ppc/configure @@ -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. diff --git a/sim/ppc/configure.ac b/sim/ppc/configure.ac index 21913a9..9bd0ab7 100644 --- a/sim/ppc/configure.ac +++ b/sim/ppc/configure.ac @@ -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, |