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 84047 a477a8579ead9f7a1f458c5440764c71eee76cae
parent 84046 8e12454829d3b934d6c0bdb78469b27a67292bf0
child 84048 a1a6f5452614da91ab16fbdc37318d73cdd6b64f
push id21820
push usermak77@bonardo.net
push dateTue, 10 Jan 2012 09:03:21 +0000
treeherdermozilla-central@01d69766026d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium
bugs716541
milestone12.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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