From: Tobias Brunner Date: Mon, 13 Jan 2025 12:29:58 +0000 (+0100) Subject: pts: Fix build with DEBUG_LEVEL < 1 X-Git-Tag: android-2.5.3~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0784ebdd2d5770f5d855c9960e596cb3008fb6b1;p=thirdparty%2Fstrongswan.git pts: Fix build with DEBUG_LEVEL < 1 --- diff --git a/src/libimcv/pts/pts_file_meas.c b/src/libimcv/pts/pts_file_meas.c index 5f8c8295b9..5b65bc2152 100644 --- a/src/libimcv/pts/pts_file_meas.c +++ b/src/libimcv/pts/pts_file_meas.c @@ -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); diff --git a/src/libimcv/pts/pts_ima_bios_list.c b/src/libimcv/pts/pts_ima_bios_list.c index a732300c74..2f6a1acb39 100644 --- a/src/libimcv/pts/pts_ima_bios_list.c +++ b/src/libimcv/pts/pts_ima_bios_list.c @@ -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;