Bug 1464809 - Disable -Werror on -Wclass-memaccess until the backlog is fixed r=froydnj
authorSylvestre Ledru <sledru@mozilla.com>
Mon, 28 May 2018 14:56:41 +0200
changeset 420253 b2d0891dd19c037cb66d72f0736e3a902f44adbb
parent 420252 eaefe57724c7cdf82de3dd524094cf119de734e6
child 420254 fd067216c3a6ef2ff0620e25c2261186a8fdc714
push id34068
push usernerli@mozilla.com
push dateTue, 29 May 2018 21:40:19 +0000
treeherdermozilla-central@5852258260e1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj
bugs1464809, 1411029
milestone62.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 1464809 - Disable -Werror on -Wclass-memaccess until the backlog is fixed r=froydnj https://bugzilla.mozilla.org/show_bug.cgi?id=1411029#c2 MozReview-Commit-ID: 2CyoNWMUrw9
build/moz.configure/warnings.configure
--- a/build/moz.configure/warnings.configure
+++ b/build/moz.configure/warnings.configure
@@ -101,16 +101,20 @@ check_and_add_gcc_warning('-Wno-error=fr
 
 # Would be a pain to fix all occurrences, for very little gain
 check_and_add_gcc_warning('-Wno-error=multistatement-macros')
 
 # Disable the -Werror for return-std-move because of a false positive
 # on nsTAutoStringN: https://bugs.llvm.org/show_bug.cgi?id=37249
 check_and_add_gcc_warning('-Wno-error=return-std-move')
 
+# Disable the -Werror for -Wclass-memaccess as we have a long
+# tail of issues to fix
+check_and_add_gcc_warning('-Wno-error=class-memaccess')
+
 # catches format/argument mismatches with printf
 c_format_warning, cxx_format_warning = check_and_add_gcc_warning(
     '-Wformat', when=depends(target)(lambda t: t.kernel != 'WINNT'))
 
 # Add compile-time warnings for unprotected functions and format functions
 # that represent possible security problems. Enable this only when -Wformat
 # is enabled, otherwise it is an error
 check_and_add_gcc_warning('-Wformat-security',