This mirrors what we do for other builds already.
+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.
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.
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,