Bug 1229357 - Disable -Werror on mingw builds, r=mt
authorJacek Caban <jacek@codeweavers.com>
Thu, 03 Dec 2015 17:38:49 +1100
changeset 11748 1a2e8b6e713c728220ad340c871e49e8290a0e0b
parent 11747 41a8009129f1d0ff161fd01c4a0a2dbd50363c2c
child 11749 e7bcbbb366842d63fb007b601b90a3de9af64899
child 11752 09cec771e93088daf87c32ed72ff5e6488610155
push id878
push usermartin.thomson@gmail.com
push dateThu, 03 Dec 2015 06:39:27 +0000
reviewersmt
bugs1229357
Bug 1229357 - Disable -Werror on mingw builds, r=mt
coreconf/WIN32.mk
--- a/coreconf/WIN32.mk
+++ b/coreconf/WIN32.mk
@@ -99,17 +99,17 @@ XP_DEFINE   += -DXP_PC
 ifdef NS_USE_GCC
 LIB_SUFFIX   = a
 else
 LIB_SUFFIX   = lib
 endif
 DLL_SUFFIX   = dll
 
 ifdef NS_USE_GCC
-    OS_CFLAGS += -mwindows -mms-bitfields -Werror
+    OS_CFLAGS += -mwindows -mms-bitfields
     _GEN_IMPORT_LIB=-Wl,--out-implib,$(IMPORT_LIBRARY)
     DLLFLAGS  += -mwindows -o $@ -shared -Wl,--export-all-symbols $(if $(IMPORT_LIBRARY),$(_GEN_IMPORT_LIB))
     ifdef BUILD_OPT
 	ifeq (11,$(ALLOW_OPT_CODE_SIZE)$(OPT_CODE_SIZE))
 		OPTIMIZER += -Os
 	else
 		OPTIMIZER += -O2
 	endif