sim: ppc: enable -Wno-format for mingw targets
authorMike Frysinger <vapier@gentoo.org>
Sat, 29 May 2021 22:02:02 +0000 (18:02 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sat, 29 May 2021 22:09:02 +0000 (18:09 -0400)
This mirrors what we do for other builds already.

sim/ppc/ChangeLog
sim/ppc/configure
sim/ppc/configure.ac

index 501b9f8db9add85fbdb7171bfd797b95f8c7a0ed..fcd74c64e4c104fecdef5c40b4a87557bf02e933 100644 (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.
index 235595b7b2c464433e79341a5b5f072b82a18503..1c2cfda37ed89f448acb2811c16551a7ff2ee165 100755 (executable)
@@ -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.
index 21913a913294e3594ebbc874d5eab563b7f178e9..9bd0ab734eb0988e2b97206393fcc661bef92dcd 100644 (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,