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

@@ -1208,7 +1208,7 @@ thread_tcache_max_set(tsd_t *tsd, size_t tcache_max) {
assert(tcache != NULL && tcache_slow != NULL);
bool enabled = tcache_available(tsd);
arena_t *assigned_arena;
arena_t *assigned_arena JEMALLOC_CLANG_ANALYZER_SILENCE_INIT(NULL);
if (enabled) {
assigned_arena = tcache_slow->arena;
/* Carry over the bin settings during the reboot. */