]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
pts: Fix build with DEBUG_LEVEL < 1
authorTobias Brunner <tobias@strongswan.org>
Mon, 13 Jan 2025 12:29:58 +0000 (13:29 +0100)
committerTobias Brunner <tobias@strongswan.org>
Mon, 13 Jan 2025 14:04:13 +0000 (15:04 +0100)
src/libimcv/pts/pts_file_meas.c
src/libimcv/pts/pts_ima_bios_list.c

index 5f8c8295b9fec5cc5fba48c6eb306439bb26c82d..5b65bc2152d9fcd3f559a706aa202e50fbcae5f9 100644 (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);
index a732300c74e910e25404bd0d209aed65fbcb0c5b..2f6a1acb398075aedc7b7a2ab522804891a0bb4c 100644 (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;