From 610d7d49da42684529692f1caa65f3d434087c7b Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Tue, 31 Mar 2015 16:36:37 +0900 Subject: [PATCH] Bug 1149416 - Don't make free-nonheap-object warning an error on a CLOSED TREE . r=glandium --- configure.in | 3 +++ js/src/configure.in | 3 +++ 2 files changed, 6 insertions(+) diff --git a/configure.in b/configure.in index f6ccb354f90..ddd5f74bf76 100644 --- a/configure.in +++ b/configure.in @@ -6962,6 +6962,7 @@ elif test "$GNU_CC"; then # -Wmaybe-uninitialized - too many false positives # -Wdeprecated-declarations - we don't want our builds held hostage when a # platform-specific API becomes deprecated. + # -Wfree-nonheap-object - false positives during PGO 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) @@ -6972,6 +6973,8 @@ elif test "$GNU_CC"; then if test -n "$MOZ_PGO"; then MOZ_C_SUPPORTS_WARNING(-W, no-error=coverage-mismatch, ac_c_has_noerror_coverage_mismatch) MOZ_CXX_SUPPORTS_WARNING(-W, no-error=coverage-mismatch, ac_cxx_has_noerror_coverage_mismatch) + MOZ_C_SUPPORTS_WARNING(-W, no-error=free-nonheap-object, ac_c_has_noerror_free_nonheap_object) + MOZ_CXX_SUPPORTS_WARNING(-W, no-error=free-nonheap-object, ac_cxx_has_noerror_free_nonheap_object) fi fi diff --git a/js/src/configure.in b/js/src/configure.in index 7d0103d126c..978d370faef 100644 --- a/js/src/configure.in +++ b/js/src/configure.in @@ -2961,6 +2961,7 @@ elif test "$GNU_CC"; then # -Wmaybe-uninitialized - too many false positives # -Wdeprecated-declarations - we don't want our builds held hostage when a # platform-specific API becomes deprecated. + # -Wfree-nonheap-object - false positives during PGO 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) @@ -2971,6 +2972,8 @@ elif test "$GNU_CC"; then if test -n "$MOZ_PGO"; then MOZ_C_SUPPORTS_WARNING(-W, no-error=coverage-mismatch, ac_c_has_noerror_coverage_mismatch) MOZ_CXX_SUPPORTS_WARNING(-W, no-error=coverage-mismatch, ac_cxx_has_noerror_coverage_mismatch) + MOZ_C_SUPPORTS_WARNING(-W, no-error=free-nonheap-object, ac_c_has_noerror_free_nonheap_object) + MOZ_CXX_SUPPORTS_WARNING(-W, no-error=free-nonheap-object, ac_cxx_has_noerror_free_nonheap_object) fi fi