Address compiler warnings in the unit tests

This commit is contained in:
Kevin Svetlitski 2023-07-03 14:45:28 -07:00 committed by Qi Wang
parent d131331310
commit e1338703ef
2 changed files with 2 additions and 2 deletions

View File

@ -32,6 +32,8 @@ static hpa_shard_opts_t test_hpa_shard_opts_default = {
false, false,
/* hugify_delay_ms */ /* hugify_delay_ms */
10 * 1000, 10 * 1000,
/* min_purge_interval_ms */
5 * 1000,
}; };
static hpa_shard_t * static hpa_shard_t *

View File

@ -144,7 +144,6 @@ TEST_BEGIN(test_retained) {
arena_t *arena = arena_get(tsdn_fetch(), arena_ind, false); arena_t *arena = arena_get(tsdn_fetch(), arena_ind, false);
size_t usable = 0; size_t usable = 0;
size_t fragmented = 0;
for (pszind_t pind = sz_psz2ind(HUGEPAGE); pind < for (pszind_t pind = sz_psz2ind(HUGEPAGE); pind <
arena->pa_shard.pac.exp_grow.next; pind++) { arena->pa_shard.pac.exp_grow.next; pind++) {
size_t psz = sz_pind2sz(pind); size_t psz = sz_pind2sz(pind);
@ -158,7 +157,6 @@ TEST_BEGIN(test_retained) {
"Excessive retained memory " "Excessive retained memory "
"(%#zx[+%#zx] > %#zx)", usable, psz_usable, "(%#zx[+%#zx] > %#zx)", usable, psz_usable,
allocated); allocated);
fragmented += psz_fragmented;
usable += psz_usable; usable += psz_usable;
} }
} }