Bug 903513: Don't treat GCC "-Wmaybe-uninitialized" warnings as errors. r=gps
☠☠ backed out by 5ba1323b3806 ☠ ☠
authorDaniel Holbert <dholbert@cs.stanford.edu>
Fri, 09 Aug 2013 12:34:54 -0700
changeset 155013 b707277861fc12bac87d17c5fcf3f3133f323d14
parent 155012 f77dd1e2e651c21af07f6a9a22d86947d96a5198
child 155014 69dc9d2c72cdf11076801e410b9b6a059cc42571
push id2961
push userlsblakk@mozilla.com
push dateMon, 28 Oct 2013 21:59:28 +0000
treeherdermozilla-beta@73ef4f13486f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgps
bugs903513
milestone26.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 903513: Don't treat GCC "-Wmaybe-uninitialized" warnings as errors. r=gps
configure.in
js/src/configure.in
--- a/configure.in
+++ b/configure.in
@@ -1252,16 +1252,18 @@ if test "$GNU_CC"; then
         if test -z "$MOZ_NO_WLZDEFS"; then
             # Don't allow undefined symbols in libraries
             DSO_LDOPTS="$DSO_LDOPTS -Wl,-z,defs"
         fi
     fi
     WARNINGS_AS_ERRORS='-Werror'
     # Don't treat -Wuninitialized as error b/c it has lots of false positives.
     WARNINGS_AS_ERRORS="$WARNINGS_AS_ERRORS -Wno-error=uninitialized"
+    # Don't treat -Wmaybe-uninitialized as error b/c it has lots of false positives.
+    WARNINGS_AS_ERRORS="$WARNINGS_AS_ERRORS -Wno-error=maybe-uninitialized"
     # Don't treat -Wdeprecated-declarations as error b/c we don't want our
     # builds held hostage when a platform-specific API is suddenly deprecated.
     WARNINGS_AS_ERRORS="$WARNINGS_AS_ERRORS -Wno-error=deprecated-declarations"
     DSO_CFLAGS=''
     DSO_PIC_CFLAGS='-fPIC'
     ASFLAGS="$ASFLAGS -fPIC"
     AC_MSG_CHECKING([for --noexecstack option to as])
     _SAVE_CFLAGS=$CFLAGS
--- a/js/src/configure.in
+++ b/js/src/configure.in
@@ -1063,16 +1063,18 @@ if test "$GNU_CC"; then
         if test -z "$MOZ_NO_WLZDEFS"; then
             # Don't allow undefined symbols in libraries
             DSO_LDOPTS="$DSO_LDOPTS -Wl,-z,defs"
         fi
     fi
     WARNINGS_AS_ERRORS='-Werror'
     # Don't treat -Wuninitialized as error b/c it has lots of false positives.
     WARNINGS_AS_ERRORS="$WARNINGS_AS_ERRORS -Wno-error=uninitialized"
+    # Don't treat -Wmaybe-uninitialized as error b/c it has lots of false positives.
+    WARNINGS_AS_ERRORS="$WARNINGS_AS_ERRORS -Wno-error=maybe-uninitialized"
     # Don't treat -Wdeprecated-declarations as error b/c we don't want our
     # builds held hostage when a platform-specific API is suddenly deprecated.
     WARNINGS_AS_ERRORS="$WARNINGS_AS_ERRORS -Wno-error=deprecated-declarations"
     DSO_CFLAGS=''
     DSO_PIC_CFLAGS='-fPIC'
     ASFLAGS="$ASFLAGS -fPIC"
     AC_MSG_CHECKING([for --noexecstack option to as])
     _SAVE_CFLAGS=$CFLAGS