Bug 1411037 - Disable -Werror on -Wmultistatement-macros because it would be a pain to fix them all r?froydnj draft
authorSylvestre Ledru <sledru@mozilla.com>
Tue, 13 Mar 2018 13:45:59 +0100
changeset 766836 0b42b5c2c7a2acdb7d6e8e7c5375996759b35289
parent 766667 8987cff0447d30e8f2d133e12e98db05306acd80
push id102407
push userbmo:sledru@mozilla.com
push dateTue, 13 Mar 2018 12:47:25 +0000
reviewersfroydnj
bugs1411037
milestone61.0a1
Bug 1411037 - Disable -Werror on -Wmultistatement-macros because it would be a pain to fix them all r?froydnj MozReview-Commit-ID: EdW0NpaOnPT
build/moz.configure/warnings.configure
--- a/build/moz.configure/warnings.configure
+++ b/build/moz.configure/warnings.configure
@@ -94,16 +94,19 @@ check_and_add_gcc_warning('-Wno-error=de
 check_and_add_gcc_warning('-Wno-error=array-bounds')
 
 # can't get rid of those PGO warnings
 check_and_add_gcc_warning('-Wno-error=coverage-mismatch', when='MOZ_PGO')
 
 # false positives depending on optimizations
 check_and_add_gcc_warning('-Wno-error=free-nonheap-object')
 
+# Would be a pain to fix that in all occurrences for a small gain
+check_and_add_gcc_warning('-Wno-error=multistatement-macros')
+
 # 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',