зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1718408 - Remove unnecessary -Wloop-analysis flag. r=firefox-build-system-reviewers,andi
We don't need to manually enable -Wloop-analysis because it just enables: * -Wrange-loop-analysis, which we manually disable. * -Wfor-loop-analysis, which is enabled by -Wmost, which is enabled by -Wall: https://clang.llvm.org/docs/DiagnosticsReference.html#wall Depends on D118900 Differential Revision: https://phabricator.services.mozilla.com/D118901
This commit is contained in:
Родитель
5294042de2
Коммит
5897c59302
|
@ -87,12 +87,6 @@ check_and_add_gcc_warning("-Wempty-init-stmt", cxx_compiler)
|
|||
check_and_add_gcc_warning("-Wfloat-overflow-conversion")
|
||||
check_and_add_gcc_warning("-Wfloat-zero-conversion")
|
||||
|
||||
# catches issues around loops
|
||||
check_and_add_gcc_warning("-Wloop-analysis")
|
||||
# But, disable range-loop-analysis because it can raise unhelpful false
|
||||
# positives.
|
||||
check_and_add_gcc_warning("-Wno-range-loop-analysis")
|
||||
|
||||
# catches C++ version forward-compat issues
|
||||
check_and_add_gcc_warning("-Wc++2a-compat", cxx_compiler)
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче