]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
simaka-manager: Fix build with DEBUG_LEVEL < 1
authorTobias Brunner <tobias@strongswan.org>
Mon, 13 Jan 2025 11:02:17 +0000 (12:02 +0100)
committerTobias Brunner <tobias@strongswan.org>
Mon, 13 Jan 2025 11:02:17 +0000 (12:02 +0100)
src/libsimaka/simaka_manager.c

index dec5a2820028430c0b16b262fb12e14105b53082..cd69ee7f32ae6f870034c1888310d40bad912ecf 100644 (file)
@@ -83,7 +83,7 @@ METHOD(simaka_manager_t, card_get_triplet, bool,
 {
        enumerator_t *enumerator;
        simaka_card_t *card;
-       int tried = 0;
+       int tried DBG_UNUSED = 0;
 
        this->lock->read_lock(this->lock);
        enumerator = this->cards->create_enumerator(this->cards);
@@ -112,7 +112,7 @@ METHOD(simaka_manager_t, card_get_quintuplet, status_t,
        enumerator_t *enumerator;
        simaka_card_t *card;
        status_t status = NOT_FOUND;
-       int tried = 0;
+       int tried DBG_UNUSED = 0;
 
        this->lock->read_lock(this->lock);
        enumerator = this->cards->create_enumerator(this->cards);
@@ -273,7 +273,7 @@ METHOD(simaka_manager_t, provider_get_triplet, bool,
 {
        enumerator_t *enumerator;
        simaka_provider_t *provider;
-       int tried = 0;
+       int tried DBG_UNUSED = 0;
 
        this->lock->read_lock(this->lock);
        enumerator = this->providers->create_enumerator(this->providers);
@@ -301,7 +301,7 @@ METHOD(simaka_manager_t, provider_get_quintuplet, bool,
 {
        enumerator_t *enumerator;
        simaka_provider_t *provider;
-       int tried = 0;
+       int tried DBG_UNUSED = 0;
 
        this->lock->read_lock(this->lock);
        enumerator = this->providers->create_enumerator(this->providers);