From: Tobias Brunner Date: Mon, 1 May 2023 08:35:05 +0000 (+0200) Subject: crypto-tester: Fix build with DEBUG_LEVEL < 1 X-Git-Tag: 5.9.11rc1~12^2~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f73d8699b346ce00e0690dd1ee4eb1506668dbcb;p=thirdparty%2Fstrongswan.git crypto-tester: Fix build with DEBUG_LEVEL < 1 --- diff --git a/src/libstrongswan/crypto/crypto_tester.c b/src/libstrongswan/crypto/crypto_tester.c index b87c4c73a3..5cd6ef4d09 100644 --- a/src/libstrongswan/crypto/crypto_tester.c +++ b/src/libstrongswan/crypto/crypto_tester.c @@ -110,6 +110,7 @@ struct private_crypto_tester_t { int bench_size; }; +#if DEBUG_LEVEL >= 1 /** * Get the name of a test vector, if available */ @@ -125,6 +126,7 @@ static const char* get_name(void *sym) #endif return "unknown"; } +#endif #if defined(CLOCK_THREAD_CPUTIME_ID) && defined(HAVE_CLOCK_GETTIME)