mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-30 12:44:10 +08:00
sim: ppc: enable -Wno-format for mingw targets
This mirrors what we do for other builds already.
This commit is contained in:
parent
952170707b
commit
c5b349e1c5
@ -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
3
sim/ppc/configure
vendored
@ -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.
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user