Fix static analysis warnings.

Newly reported warnings included several reserved macro identifier, and
false-positive used-uninitialized.
This commit is contained in:
Qi Wang 2024-08-28 11:33:07 -07:00 committed by Qi Wang
parent 5b72ac098a
commit bd0a5b0f3b
4 changed files with 5 additions and 4 deletions

View file

@ -53,7 +53,8 @@ CC_ANALYZERS_FROM_PATH=1 CodeChecker analyze compile_commands.json --jobs "$(npr
--ctu --compile-uniqueing strict --output static_analysis_raw_results \
--analyzers clangsa clang-tidy --skip "$skipfile" \
--enable readability-inconsistent-declaration-parameter-name \
--enable performance-no-int-to-ptr
--enable performance-no-int-to-ptr \
--disable clang-diagnostic-reserved-macro-identifier
# `--enable` is additive, the vast majority of the checks we want are
# enabled by default.