]> oss.titaniummirror.com Git - msp430-binutils.git/blobdiff - bfd/warning.m4
Imported binutils-2.20
[msp430-binutils.git] / bfd / warning.m4
index b366cadeb29365e92156d87b3c800560c9d9730b..0b0bf2f7f8bf28a8bb66f4416c47e97db1e9d3d3 100644 (file)
@@ -11,6 +11,16 @@ AC_ARG_ENABLE(werror,
      *) AC_MSG_ERROR(bad value ${enableval} for --enable-werror) ;;
    esac])
 
+# 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