Avoid undefined variable warning without MBEDTLS_MD_C

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
Gilles Peskine 2021-11-10 19:11:32 +01:00
parent 99d8486f8e
commit 3dbb3e7e07

View file

@ -55,7 +55,9 @@
int main( void ) int main( void )
{ {
#if defined(MBEDTLS_MD_C) || defined(MBEDTLS_SSL_TLS_C)
unsigned n; unsigned n;
#endif
#if defined(MBEDTLS_SSL_TLS_C) #if defined(MBEDTLS_SSL_TLS_C)
void *tls_so = dlopen( TLS_SO_FILENAME, RTLD_NOW ); void *tls_so = dlopen( TLS_SO_FILENAME, RTLD_NOW );