diff options
author | trav90 <travawine@palemoon.org> | 2018-09-06 22:28:08 -0500 |
---|---|---|
committer | trav90 <travawine@palemoon.org> | 2018-09-06 22:28:08 -0500 |
commit | 7266a0d588308eb89683825573f478ee61f7ebde (patch) | |
tree | ef52edeaf7c7605eab2ac7ecf978adb119305ef9 | |
parent | 5b5d55dbb46379cc88bffa89a638d8d0066e19df (diff) | |
download | uxp-7266a0d588308eb89683825573f478ee61f7ebde.tar.gz |
[GCC] Add -Wno-noexcept-type to the js build flags
-rw-r--r-- | build/moz.configure/warnings.configure | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/build/moz.configure/warnings.configure b/build/moz.configure/warnings.configure index 94ad3fa79b..567814632c 100644 --- a/build/moz.configure/warnings.configure +++ b/build/moz.configure/warnings.configure @@ -109,6 +109,14 @@ check_and_add_gcc_warning('-Wno-error=multistatement-macros') check_and_add_gcc_warning('-Wno-format', when=depends(target)(lambda t: t.kernel == 'WINNT')) +# Disable a warning with GCC 7+. +# We are far from using C++17 and the impact of the warning will be +# limited to a potential public ABI. +# Currently only affecting js/ +check_and_add_gcc_warning('-Wno-noexcept-type', cxx_compiler, + when=depends(build_project) + (lambda build_project: build_project == 'js')) + # Please keep these last in this file add_old_configure_assignment('_WARNINGS_CFLAGS', warnings_cflags) add_old_configure_assignment('_WARNINGS_CXXFLAGS', warnings_cxxflags) |