From 45beb0e8848d81ac4e7d77e0c0b1a175e7010d75 Mon Sep 17 00:00:00 2001 From: Daniel Holbert Date: Wed, 14 Aug 2013 21:26:44 -0700 Subject: [PATCH] Bug 903513: Don't treat GCC "-Wmaybe-uninitialized" warnings as errors. r=gps --- configure.in | 3 +++ js/src/configure.in | 3 +++ 2 files changed, 6 insertions(+) diff --git a/configure.in b/configure.in index ac2697a1bb2..0d1680b1925 100644 --- a/configure.in +++ b/configure.in @@ -6996,10 +6996,13 @@ if test -z "$MOZ_ENABLE_WARNINGS_AS_ERRORS"; then elif test "$GNU_CC"; then # Prevent the following GCC warnings from being treated as errors: # -Wuninitialized - too many false positives + # -Wmaybe-uninitialized - too many false positives # -Wdeprecated-declarations - we don't want our builds held hostage when a # platform-specific API becomes deprecated. MOZ_C_SUPPORTS_WARNING(-W, no-error=uninitialized, ac_c_has_noerror_uninitialized) MOZ_CXX_SUPPORTS_WARNING(-W, no-error=uninitialized, ac_cxx_has_noerror_uninitialized) + MOZ_C_SUPPORTS_WARNING(-W, no-error=maybe-uninitialized, ac_c_has_noerror_maybe_uninitialized) + MOZ_CXX_SUPPORTS_WARNING(-W, no-error=maybe-uninitialized, ac_cxx_has_noerror_maybe_uninitialized) MOZ_C_SUPPORTS_WARNING(-W, no-error=deprecated-declarations, ac_c_has_noerror_deprecated_declarations) MOZ_CXX_SUPPORTS_WARNING(-W, no-error=deprecated-declarations, ac_cxx_has_noerror_deprecated_declarations) fi diff --git a/js/src/configure.in b/js/src/configure.in index 639ac3ad433..18725935f0d 100644 --- a/js/src/configure.in +++ b/js/src/configure.in @@ -3263,10 +3263,13 @@ if test -z "$MOZ_ENABLE_WARNINGS_AS_ERRORS"; then elif test "$GNU_CC"; then # Prevent the following GCC warnings from being treated as errors: # -Wuninitialized - too many false positives + # -Wmaybe-uninitialized - too many false positives # -Wdeprecated-declarations - we don't want our builds held hostage when a # platform-specific API becomes deprecated. MOZ_C_SUPPORTS_WARNING(-W, no-error=uninitialized, ac_c_has_noerror_uninitialized) MOZ_CXX_SUPPORTS_WARNING(-W, no-error=uninitialized, ac_cxx_has_noerror_uninitialized) + MOZ_C_SUPPORTS_WARNING(-W, no-error=maybe-uninitialized, ac_c_has_noerror_maybe_uninitialized) + MOZ_CXX_SUPPORTS_WARNING(-W, no-error=maybe-uninitialized, ac_cxx_has_noerror_maybe_uninitialized) MOZ_C_SUPPORTS_WARNING(-W, no-error=deprecated-declarations, ac_c_has_noerror_deprecated_declarations) MOZ_CXX_SUPPORTS_WARNING(-W, no-error=deprecated-declarations, ac_cxx_has_noerror_deprecated_declarations) fi