From b6a02997080b43f2e9caba81062e97d4bc5773ac Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Wed, 10 Nov 2021 19:11:32 +0100 Subject: [PATCH] Avoid undefined variable warning without MBEDTLS_MD_C Signed-off-by: Gilles Peskine --- programs/test/dlopen.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/programs/test/dlopen.c b/programs/test/dlopen.c index fe1a6ac15..ecd7f0fbc 100644 --- a/programs/test/dlopen.c +++ b/programs/test/dlopen.c @@ -55,7 +55,9 @@ int main( void ) { +#if defined(MBEDTLS_MD_C) || defined(MBEDTLS_SSL_TLS_C) unsigned n; +#endif #if defined(MBEDTLS_SSL_TLS_C) void *tls_so = dlopen( TLS_SO_FILENAME, RTLD_NOW );