From bb8541b9c4e5fd33d0b2a2271a060ece41c708ee Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Mon, 4 Feb 2008 19:43:51 +0000 Subject: bfd/ 2008-02-04 Kai Tietz H.J. Lu PR 5715 * warning.m4: Enable -Wno-format by default when using gcc on mingw. * configure: Regenerated. binutils/ 2008-02-04 H.J. Lu PR 5715 * configure: Regenerated. gas/ 2008-02-04 H.J. Lu PR 5715 * configure: Regenerated. ld/ 2008-02-04 H.J. Lu PR 5715 * configure: Regenerated. opcodes/ 2008-02-04 H.J. Lu PR 5715 * configure: Regenerated. --- binutils/configure | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'binutils/configure') diff --git a/binutils/configure b/binutils/configure index 7b57c96..7131ced 100755 --- a/binutils/configure +++ b/binutils/configure @@ -10305,6 +10305,16 @@ echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;} esac fi; +# Enable -Wno-format by default when using gcc on mingw +case "${host}" in + *-*-mingw32*) + if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then + GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format" + fi + ;; + *) ;; +esac + # Enable -Werror by default when using gcc if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then ERROR_ON_WARNING=yes -- cgit v1.1