]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
kernel-netlink: Fix build with DEBUG_LEVEL < 2
authorTobias Brunner <tobias@strongswan.org>
Mon, 1 May 2023 10:16:12 +0000 (12:16 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 8 May 2023 15:32:18 +0000 (17:32 +0200)
src/libcharon/plugins/kernel_netlink/kernel_netlink_ipsec.c

index 35fd7bd6cff67d9884d9354502f6109cb157721a..7596f0c1813840038882542b3779a49ffe5d4dd7 100644 (file)
@@ -3067,8 +3067,8 @@ METHOD(kernel_ipsec_t, add_policy, status_t,
        enumerator_t *enumerator;
        bool found = FALSE, update = TRUE;
        char markstr[32] = "", labelstr[128] = "";
-       uint32_t cur_priority = 0;
-       int use_count;
+       uint32_t cur_priority DBG_UNUSED = 0;
+       int use_count DBG_UNUSED;
 
        /* create a policy */
        INIT(policy,
@@ -3286,7 +3286,7 @@ METHOD(kernel_ipsec_t, del_policy, status_t,
        struct nlmsghdr *hdr;
        struct xfrm_userpolicy_id *policy_id;
        bool is_installed = TRUE;
-       uint32_t priority, auto_priority, cur_priority;
+       uint32_t priority, auto_priority, cur_priority DBG_UNUSED;
        ipsec_sa_t assigned_sa = {
                .src = data->src,
                .dst = data->dst,