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:
Chris Peterson 2021-07-01 18:37:42 +00:00
Родитель 5294042de2
Коммит 5897c59302
1 изменённых файлов: 0 добавлений и 6 удалений

Просмотреть файл

@ -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)