From 587c1ae1955374f5d6b0686c8bd3bf4af4fd341d Mon Sep 17 00:00:00 2001 From: Hanno Becker Date: Thu, 25 Jul 2019 09:50:25 +0100 Subject: [PATCH] Make IAR happy by dummy-initializing an unused variable IAR doesn't like `((void) var);` as a means to indicate an unused variable if that variable hasn't been initialized before. Make it happy by initializing the variable before. --- library/ssl_cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/ssl_cli.c b/library/ssl_cli.c index e8c4a09b4..60bec57dd 100644 --- a/library/ssl_cli.c +++ b/library/ssl_cli.c @@ -3399,7 +3399,7 @@ cleanup: static int ssl_client_key_exchange_prepare( mbedtls_ssl_context *ssl ) { - int ret; + int ret = 0; mbedtls_ssl_ciphersuite_handle_t ciphersuite_info = mbedtls_ssl_handshake_get_ciphersuite( ssl->handshake );