fix unused variable warning

Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
Jerry Yu 2021-08-24 18:07:13 +08:00
parent ef6b36b484
commit 32cd5b19dc

View File

@ -173,8 +173,9 @@ static int ssl_client_hello_write_partial( mbedtls_ssl_context* ssl,
* extension list must be kept to write
* the total extension list size in the end.
*/
#if defined(MBEDTLS_KEY_EXCHANGE_WITH_CERT_ENABLED)
int ret;
#endif /* MBEDTLS_KEY_EXCHANGE_WITH_CERT_ENABLED */
unsigned char* extension_start;
size_t cur_ext_len; /* Size of the current extension */
size_t total_ext_len; /* Size of list of extensions */