pts: Fix build with DEBUG_LEVEL < 1

This commit is contained in:
Tobias Brunner 2025-01-13 13:29:58 +01:00
parent e248f0f3c2
commit 0784ebdd2d
2 changed files with 3 additions and 2 deletions

View File

@ -127,7 +127,8 @@ METHOD(pts_file_meas_t, check, bool,
enumerator_t *enumerator, *e;
entry_t *entry;
chunk_t hash;
int count_ok = 0, count_not_found = 0, count_differ = 0;
int count_ok DBG_UNUSED = 0, count_not_found DBG_UNUSED = 0;
int count_differ DBG_UNUSED = 0;
status_t status;
enumerator = this->list->create_enumerator(this->list);

View File

@ -201,7 +201,7 @@ pts_ima_bios_list_t* pts_ima_bios_list_create(tpm_tss_t *tpm, char *file,
pts_meas_algorithms_t algo)
{
private_pts_ima_bios_list_t *this;
uint32_t pcr, event_type, event_len, seek_len, count = 1;
uint32_t pcr, event_type, event_len, seek_len, count DBG_UNUSED = 1;
uint32_t buf_len = 8192;
uint8_t event_buf[buf_len];
hash_algorithm_t hash_alg;