From 2fae3820b002503632c6c438cc629cd1816a0273 Mon Sep 17 00:00:00 2001 From: Ian Neal Date: Mon, 29 Oct 2012 18:24:06 +0000 Subject: [PATCH] Bug 802343 - Port |Bug 557000 - Correctly set GCC_VERSION on mingw| and |Bug 797793 - Disable format warnings on mingw| to comm-central r=Callek --- configure.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configure.in b/configure.in index 8b38282bc9..9c22241907 100644 --- a/configure.in +++ b/configure.in @@ -1857,6 +1857,12 @@ ia64*-hpux*) XPCOM_FROZEN_LDOPTS='-L$(LIBXUL_DIST)/lib -lxpcom -lmozalloc' DLL_PREFIX= IMPORT_LIB_SUFFIX=dll.a + GCC_VERSION=`$CC -v 2>&1 | awk '/^gcc version/ { print $3 }'` + + # We use mix of both POSIX and Win32 printf format across the tree, + # so format warnings are useless on mingw. + MOZ_C_SUPPORTS_WARNING(-Wno-, format, ac_c_has_wno_format) + MOZ_CXX_SUPPORTS_WARNING(-Wno-, format, ac_cxx_has_wno_format) else TARGET_COMPILER_ABI=msvc HOST_CC='$(CC)'