Bug 521435 Update warnings for LTO
MozReview-Commit-ID: EQtAivAY8cM
--- a/build/moz.configure/warnings.configure
+++ b/build/moz.configure/warnings.configure
@@ -88,16 +88,26 @@ check_and_add_gcc_warning('-Wno-error=ma
# we don't want our builds held hostage when a platform-specific API
# becomes deprecated.
check_and_add_gcc_warning('-Wno-error=deprecated-declarations')
# false positives depending on optimization
check_and_add_gcc_warning('-Wno-error=array-bounds')
+# only enabled in LTO build, and we apparently don't care about these warnings
+check_and_add_gcc_warning('-Wno-error=odr')
+check_and_add_gcc_warning('-Wno-error=lto-type-mismatch')
+
+# add suggestions for final keywords in LTO builds
+check_and_add_gcc_warning('-Wsuggest-final-types')
+check_and_add_gcc_warning('-Wno-error=suggest-final-types')
+check_and_add_gcc_warning('-Wsuggest-final-methods')
+check_and_add_gcc_warning('-Wno-error=suggest-final-methods')
+
# 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')
# catches format/argument mismatches with printf
c_format_warning, cxx_format_warning = check_and_add_gcc_warning(