Bug 716541 - Do not fail build on -Winitialized when treating warnings as errors. r=glandium
authorMounir Lamouri <mounir.lamouri@gmail.com>
Mon, 09 Jan 2012 19:04:35 +0100
changeset 85272 a477a8579ead9f7a1f458c5440764c71eee76cae
parent 85271 8e12454829d3b934d6c0bdb78469b27a67292bf0
child 85273 a1a6f5452614da91ab16fbdc37318d73cdd6b64f
push id805
push userakeybl@mozilla.com
push dateWed, 01 Feb 2012 18:17:35 +0000
treeherdermozilla-aurora@6fb3bf232436 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium
bugs716541
milestone12.0a1
Bug 716541 - Do not fail build on -Winitialized when treating warnings as errors. r=glandium
configure.in
--- a/configure.in
+++ b/configure.in
@@ -1853,17 +1853,17 @@ if test "$GNU_CC"; then
     CFLAGS="$CFLAGS -fno-strict-aliasing"
     MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -Wl,-h,$@ -o $@'
     MKCSHLIB='$(CC) $(CFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -Wl,-h,$@ -o $@'
     DSO_LDOPTS='-shared'
     if test "$GCC_USE_GNU_LD"; then
         # Don't allow undefined symbols in libraries
         DSO_LDOPTS="$DSO_LDOPTS -Wl,-z,defs"
     fi
-    WARNINGS_AS_ERRORS='-Werror'
+    WARNINGS_AS_ERRORS='-Werror -Wno-error=initialized'
     DSO_CFLAGS=''
     DSO_PIC_CFLAGS='-fPIC'
     ASFLAGS="$ASFLAGS -fPIC"
     _MOZ_RTTI_FLAGS_ON=-frtti
     _MOZ_RTTI_FLAGS_OFF=-fno-rtti
 
     # Turn on GNU specific features
     # -Wall - turn on all warnings