]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
credential-factory: Fix build with DEBUG_LEVEL < 1
authorTobias Brunner <tobias@strongswan.org>
Fri, 10 Jan 2025 15:30:44 +0000 (16:30 +0100)
committerTobias Brunner <tobias@strongswan.org>
Fri, 10 Jan 2025 17:53:57 +0000 (18:53 +0100)
Newer versions of clang complain here.

src/libstrongswan/credentials/credential_factory.c

index c46ca580254f2b59bc6ebc1f5c953a11d7f6ba0e..1fa34192d84afe723e08c5f3860de5026e6ae9ed 100644 (file)
@@ -117,7 +117,7 @@ METHOD(credential_factory_t, create, void*,
        entry_t *entry;
        va_list args;
        void *construct = NULL;
-       int failures = 0;
+       int failures DBG_UNUSED = 0;
        uintptr_t level;
        enum_name_t *names DBG_UNUSED;