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 142272 b707277861fc12bac87d17c5fcf3f3133f323d14
parent 142271 f77dd1e2e651c21af07f6a9a22d86947d96a5198
child 142273 69dc9d2c72cdf11076801e410b9b6a059cc42571
push id270
push userpvanderbeken@mozilla.com
push dateThu, 06 Mar 2014 09:24:21 +0000
reviewersgps
bugs903513
milestone26.0a1
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